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

Function TEST

test/target_env_test.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 ValuesIn(spvtest::AllTargetEnvironments()));
50
51TEST(GetContextTest, InvalidTargetEnvProducesNull) {
52 // Use a value beyond the last valid enum value.
53 spv_context context = spvContextCreate(static_cast<spv_target_env>(30));
54 EXPECT_EQ(context, nullptr);
55}
56
57// A test case for parsing an environment string.
58struct ParseCase {

Callers

nothing calls this directly

Calls 1

spvContextCreateFunction · 0.85

Tested by

no test coverage detected