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

Function ExpectAddInt

src/test/packer_test.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static void ExpectAddInt(int Input, int Expected)
33{
34 CPacker Packer;
35 Packer.Reset();
36 Packer.AddInt(Input);
37 EXPECT_EQ(Packer.Error(), false);
38 ASSERT_EQ(Packer.Size(), 1);
39 EXPECT_EQ(Packer.Data()[0], Expected);
40}
41
42static void ExpectAddExtendedInt(int Input, unsigned char *pExpected, int Size)
43{

Callers 1

TESTFunction · 0.85

Calls 5

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

Tested by

no test coverage detected