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

Function testOverhead

tests/applesingle.cc:8–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace snowhouse;
7
8static void testOverhead()
9{
10 AppleSingle t;
11 t.data = Bytes("This is the data fork");
12 t.rsrc = Bytes("This is the resource fork");
13
14 AssertThat(t.render().size(),
15 Equals(t.data.size() + t.rsrc.size() + AppleSingle::OVERHEAD));
16}
17
18static void testRoundtrip()
19{

Callers 1

mainFunction · 0.85

Calls 3

BytesClass · 0.50
sizeMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected