MCPcopy Create free account
hub / github.com/crankyoldgit/IRremoteESP8266 / TEST

Function TEST

test/IRutils_test.cpp:14–20  ·  view source on GitHub ↗

Tests reverseBits for typical use.

Source from the content-addressed store, hash-verified

12
13// Tests reverseBits for typical use.
14TEST(ReverseBitsTest, TypicalUse) {
15 EXPECT_EQ(0xF, reverseBits(0xF0, 8));
16 EXPECT_EQ(0xFFFF, reverseBits(0xFFFF0000, 32));
17 EXPECT_EQ(0x555500005555FFFF, reverseBits(0xFFFFAAAA0000AAAA, 64));
18 EXPECT_EQ(0, reverseBits(0, 64));
19 EXPECT_EQ(0xFFFFFFFFFFFFFFFF, reverseBits(0xFFFFFFFFFFFFFFFF, 64));
20}
21
22// Tests reverseBits for bit size values <= 1
23TEST(ReverseBitsTest, LessThanTwoBitsReversed) {

Callers

nothing calls this directly

Calls 15

reverseBitsFunction · 0.85
uint64ToStringFunction · 0.85
getCorrectedRawLengthFunction · 0.85
resultToSourceCodeFunction · 0.85
resultToTimingInfoFunction · 0.85
invertBitsFunction · 0.85
countBitsFunction · 0.85
strToDecodeTypeFunction · 0.85
htmlEscapeFunction · 0.85
celsiusToFahrenheitFunction · 0.85
fahrenheitToCelsiusFunction · 0.85

Tested by

no test coverage detected