MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / test_roundtrip

Function test_roundtrip

tests/compression.cc:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "lib/core/bytes.h"
3
4static void test_roundtrip()
5{
6 Bytes source = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
7
8 auto compressed = source.compress();
9 auto decompressed = compressed.decompress();
10
11 assert(decompressed == source);
12}
13
14int main(int argc, const char* argv[])
15{

Callers 1

mainFunction · 0.85

Calls 2

compressMethod · 0.80
decompressMethod · 0.80

Tested by

no test coverage detected