MCPcopy Create free account
hub / github.com/cginternals/glbinding / TEST

Function TEST

source/tests/glbinding-test/SharedBitfield_test.cpp:43–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43TEST(SharedBitfield, Usage1a)
44{
45 A bitsA_a = A::A_a;
46 A bitsA_b = A::A_b;
47
48 A bitsA_c = bitsA_a | bitsA_b;
49
50 bitsA_c |= bitsA_b;
51
52 SharedBitfield<A, B, C> shared1 = bitsA_a;
53 SharedBitfield<A, B, C> shared2 = bitsA_b;
54
55 shared1 |= shared2;
56
57 bitsA_c |= shared1;
58
59 EXPECT_EQ(bitsA_a | bitsA_b, bitsA_c);
60}
61
62TEST(SharedBitfield, Usage1b)
63{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected