MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / TestEncode

Function TestEncode

UnitTests/sources/UtilTest.cpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29bool TestEncode(const char* data,UInt32 size, const char* result) {
30 static string value;
31 return Util::ToBase64((UInt8*)data, size, value) == result;
32}
33
34bool TestDecode(string data, const char* result, UInt32 size) {
35 return Util::FromBase64(data) && memcmp(data.c_str(),result,size)==0;

Callers 1

ADD_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected