MCPcopy Create free account
hub / github.com/apache/thrift / checkEncoding

Function checkEncoding

lib/cpp/test/Base64Test.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void checkEncoding(uint8_t* data, int len) {
40#ifdef NDEBUG
41 ((void)data);
42#endif
43
44 for (int i = 0; i < len; i++) {
45 BOOST_ASSERT(isalnum(data[i]) || data[i] == '/' || data[i] == '+');
46 }
47}
48
49BOOST_AUTO_TEST_CASE(test_Base64_Encode_Decode) {
50 int len;

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected