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

Function TEST

test/opt/utils_test.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace {
24
25TEST(JoinAllInsts, Cases) {
26 EXPECT_EQ("", JoinAllInsts({}));
27 EXPECT_EQ("a\n", JoinAllInsts({"a"}));
28 EXPECT_EQ("a\nb\n", JoinAllInsts({"a", "b"}));
29 EXPECT_EQ("a\nb\nc\n", JoinAllInsts({"a", "b", "c"}));
30 EXPECT_EQ("hello,\nworld!\n\n\n", JoinAllInsts({"hello,", "world!", "\n"}));
31}
32
33TEST(JoinNonDebugInsts, Cases) {
34 EXPECT_EQ("", JoinNonDebugInsts({}));

Callers

nothing calls this directly

Calls 2

JoinAllInstsFunction · 0.85
JoinNonDebugInstsFunction · 0.85

Tested by

no test coverage detected