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

Function TEST_P

test/val/val_extensions_test.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 "SPV_KHR_shader_ballot_ERROR"));
70
71TEST_P(ValidateKnownExtensions, ExpectSuccess) {
72 const std::string extension = GetParam();
73 const std::string str =
74 "OpCapability Shader\nOpCapability Linkage\nOpExtension \"" + extension +
75 "\"\nOpMemoryModel Logical GLSL450";
76 CompileSuccessfully(str.c_str());
77 ASSERT_EQ(SPV_SUCCESS, ValidateInstructions());
78 EXPECT_THAT(getDiagnosticString(), Not(HasSubstr(GetErrorString(extension))));
79}
80
81TEST_P(ValidateUnknownExtensions, FailSilently) {
82 const std::string extension = GetParam();

Callers

nothing calls this directly

Calls 5

spvTargetEnvDescriptionFunction · 0.85
spvIsVulkanEnvFunction · 0.85
c_strMethod · 0.80
GetErrorStringFunction · 0.70

Tested by

no test coverage detected