MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / PackerTest

Class PackerTest

runtime/PackerTest.cc:31–67  ·  view source on GitHub ↗

The fixture for testing class Foo.

Source from the content-addressed store, hash-verified

29
30// The fixture for testing class Foo.
31class PackerTest : public ::testing::Test {
32 protected:
33 // You can remove any or all of the following functions if its body
34 // is empty.
35
36 PackerTest()
37 : testFile("packerTestFile.bin")
38 , buffer_space()
39 , buffer(buffer_space)
40 {
41 // You can do set-up work for each test here.
42 }
43
44 virtual ~PackerTest() {
45 // You can do clean-up work that doesn't throw exceptions here.
46 }
47
48 // If the constructor and destructor are not enough for setting up
49 // and cleaning up each test, you can define the following methods:
50
51 virtual void SetUp() {
52 // Code here will be called immediately after the constructor (right
53 // before each test).
54 }
55
56 virtual void TearDown() {
57 // Code here will be called immediately after each test (right
58 // before the destructor).
59 std::remove(testFile);
60 }
61
62 // Objects declared here can be used by all tests in the test case for Foo.
63
64 const char *testFile;
65 char buffer_space[10000];
66 char *buffer = buffer_space;
67};
68
69TEST_F(PackerTest, packUnsignedIntegers)
70{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected