MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TEST

Function TEST

test/util/bit_vector_test.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using BitVectorTest = ::testing::Test;
26
27TEST(BitVectorTest, Initialize) {
28 BitVector bvec;
29
30 // Checks that all values are 0. Also tests checking a bit past the end of
31 // the vector containing the bits.
32 for (int i = 1; i < 10000; i *= 2) {
33 EXPECT_FALSE(bvec.Get(i));
34 }
35}
36
37TEST(BitVectorTest, Set) {
38 BitVector bvec;

Callers

nothing calls this directly

Calls 4

SetMethod · 0.80
OrMethod · 0.80
GetMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected