MCPcopy Create free account
hub / github.com/avast/retdec / TEST_F

Function TEST_F

tests/utils/alignment_tests.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17class AlignmentTests : public Test {};
18
19TEST_F(AlignmentTests,
20IsAlignedWorks) {
21 std::uint64_t remainder;
22
23 EXPECT_TRUE(isAligned(0x2000, 0x1000, remainder));
24 EXPECT_EQ(0, remainder);
25
26 EXPECT_FALSE(isAligned(0x2010, 0x1000, remainder));
27 EXPECT_EQ(0x10, remainder);
28}
29
30TEST_F(AlignmentTests,
31AlignDownWorks) {

Callers

nothing calls this directly

Calls 3

isAlignedFunction · 0.85
alignDownFunction · 0.85
alignUpFunction · 0.85

Tested by

no test coverage detected