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

Function test_convert

tests/kryoflux.cc:8–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "lib/external/kryoflux.h"
7
8static void test_convert(const Bytes& kryofluxbytes, const Bytes& fluxmapbytes)
9{
10 std::unique_ptr<Fluxmap> fluxmap = readStream(kryofluxbytes);
11
12 if (fluxmap->rawBytes() != fluxmapbytes)
13 {
14 std::cout << "Kryoflux bytes:" << std::endl;
15 hexdump(std::cout, kryofluxbytes);
16 std::cout << std::endl << "Produced this:" << std::endl;
17 hexdump(std::cout, fluxmap->rawBytes());
18 std::cout << std::endl << "Expected this:" << std::endl;
19 hexdump(std::cout, fluxmapbytes);
20 abort();
21 }
22}
23
24static void test_stream_reader()
25{

Callers 1

test_stream_readerFunction · 0.70

Calls 2

readStreamFunction · 0.85
hexdumpFunction · 0.85

Tested by

no test coverage detected