MCPcopy Create free account
hub / github.com/chen3feng/toft / TEST

Function TEST

container/bitmap_test.cpp:14–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace toft {
13
14TEST(Bitmap, GetSetClear)
15{
16 DynamicBitmap bm(1000);
17 bm.SetAt(100);
18 EXPECT_TRUE(bm.GetAt(100));
19 bm.ClearAt(100);
20 EXPECT_FALSE(bm.GetAt(100));
21
22 bm.SetAt(100, true);
23 EXPECT_TRUE(bm.GetAt(100));
24
25 bm.SetAt(100, false);
26 EXPECT_FALSE(bm.GetAt(100));
27}
28
29TEST(Bitmap, InitialValue)
30{

Callers

nothing calls this directly

Calls 15

SetAtMethod · 0.80
ClearAtMethod · 0.80
SetAllMethod · 0.80
AllAreSetMethod · 0.80
ClearAllMethod · 0.80
AllAreClearMethod · 0.80
LeftShiftMethod · 0.80
RightShiftMethod · 0.80
AllAreClearInRangeMethod · 0.80
IsSubsetOfMethod · 0.80
FindFirstMethod · 0.80
FindNextMethod · 0.80

Tested by

no test coverage detected