5#ifndef NDS_PROXY_STATUS_CODES_HH_HH
6#define NDS_PROXY_STATUS_CODES_HH_HH
30#ifdef _NDS_IMPL_ENABLE_CATCH_TESTS_
35TEST_CASE(
"Verify status codes exist",
"[status_codes]" )
39 return std::string( code.data( ), code.size( ) );
42 REQUIRE( status_to_str( STATUS_DAQD_OK ) ==
"0000" );
43 REQUIRE( status_to_str( STATUS_DAQD_ERROR ) ==
"0001" );
44 REQUIRE( status_to_str( STATUS_DAQD_VERSION_MISMATCH ) ==
"000b" );
45 REQUIRE( status_to_str( STATUS_DAQD_SYNTAX ) ==
"0019" );
46 REQUIRE( status_to_str( STATUS_DAQD_ON_TAPE ) ==
"001a" );
47 REQUIRE( status_to_str( STATUS_DAQD_NOT_FOUND ) ==
"000d" );
Definition span_reader.hh:16
const auto STATUS_DAQD_ON_TAPE
Definition status_codes.hh:22
std::array< char, 4 > status_code
Definition status_codes.hh:14
const auto STATUS_DAQD_NOT_FOUND
Definition status_codes.hh:20
const auto STATUS_DAQD_VERSION_MISMATCH
Definition status_codes.hh:18
const auto STATUS_DAQD_OK
Definition status_codes.hh:16
const auto STATUS_DAQD_ERROR
Definition status_codes.hh:17
const auto STATUS_DAQD_SYNTAX
Definition status_codes.hh:21
Definition span_reader.hh:14
TEST_CASE("daq_strlcpy copies strings safely when buffers are sufficiently large")
Definition test_bsd_string.cc:9