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

Function TEST

test/operand_pattern_test.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using ::testing::Eq;
25
26TEST(OperandPattern, InitiallyEmpty) {
27 spv_operand_pattern_t empty;
28 EXPECT_THAT(empty, Eq(spv_operand_pattern_t{}));
29 EXPECT_EQ(0u, empty.size());
30 EXPECT_TRUE(empty.empty());
31}
32
33TEST(OperandPattern, PushBacksAreOnTheRight) {
34 spv_operand_pattern_t pattern;

Callers

nothing calls this directly

Calls 6

backMethod · 0.80
pop_backMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected