MCPcopy Create free account
hub / github.com/ddnet/ddnet / ExpectAddExtendedInt

Function ExpectAddExtendedInt

src/test/packer_test.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static void ExpectAddExtendedInt(int Input, unsigned char *pExpected, int Size)
43{
44 CPacker Packer;
45 Packer.Reset();
46 Packer.AddInt(Input);
47 EXPECT_EQ(Packer.Error(), false);
48 ASSERT_EQ(Packer.Size(), Size);
49 EXPECT_EQ(mem_comp(Packer.Data(), pExpected, Size), 0);
50}
51
52TEST(Packer, AddInt)
53{

Callers 1

TESTFunction · 0.85

Calls 6

mem_compFunction · 0.85
AddIntMethod · 0.80
ResetMethod · 0.45
ErrorMethod · 0.45
SizeMethod · 0.45
DataMethod · 0.45

Tested by

no test coverage detected