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

Function TEST_P

test/target_env_test.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29using TargetEnvTest = ::testing::TestWithParam<spv_target_env>;
30TEST_P(TargetEnvTest, CreateContext) {
31 spv_target_env env = GetParam();
32 spv_context context = spvContextCreate(env);
33 ASSERT_NE(nullptr, context);
34 spvContextDestroy(context); // Avoid leaking
35}
36
37TEST_P(TargetEnvTest, ValidDescription) {
38 const char* description = spvTargetEnvDescription(GetParam());

Callers

nothing calls this directly

Calls 9

spvContextCreateFunction · 0.85
spvContextDestroyFunction · 0.85
spvTargetEnvDescriptionFunction · 0.85
spvVersionForTargetEnvFunction · 0.85
spvParseTargetEnvFunction · 0.85
spvParseVulkanEnvFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected