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

Function TEST

test/name_mapper_test.cpp:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using ::testing::Eq;
28
29TEST(TrivialNameTest, Samples) {
30 auto mapper = GetTrivialNameMapper();
31 EXPECT_EQ(mapper(1), "1");
32 EXPECT_EQ(mapper(1999), "1999");
33 EXPECT_EQ(mapper(1024), "1024");
34}
35
36// A test case for the name mappers that actually look at an assembled module.
37struct NameIdCase {

Callers

nothing calls this directly

Calls 1

GetTrivialNameMapperFunction · 0.85

Tested by

no test coverage detected