MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/lib/core/bitmap_test.cc:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37TEST(BitmapTest, Basic) {
38 for (size_t n = 0; n < 200; n = NextSize(n)) {
39 Bitmap bits(n);
40 for (size_t i = 0; i < n; i++) {
41 EXPECT_FALSE(bits.get(i)) << n << " " << i << " " << bits.ToString();
42 bits.set(i);
43 EXPECT_TRUE(bits.get(i)) << n << " " << i << " " << bits.ToString();
44 bits.clear(i);
45 EXPECT_FALSE(bits.get(i)) << n << " " << i << " " << bits.ToString();
46 }
47 }
48}
49
50TEST(BitmapTest, ToString) {
51 Bitmap bits(10);

Callers

nothing calls this directly

Calls 8

NextSizeFunction · 0.85
MakeRandomBitmapFunction · 0.85
FirstUnsetMethod · 0.80
bitsMethod · 0.80
getMethod · 0.45
ToStringMethod · 0.45
setMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected