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

Function TEST_F

test/binary_destroy_test.cpp:33–41  ·  view source on GitHub ↗

Checks safety of destroying a validly constructed binary.

Source from the content-addressed store, hash-verified

31
32// Checks safety of destroying a validly constructed binary.
33TEST_F(BinaryDestroySomething, Default) {
34 // Use a binary object constructed by the API instead of rolling our own.
35 SetText("OpSource OpenCL_C 120");
36 spv_binary my_binary = nullptr;
37 ASSERT_EQ(SPV_SUCCESS, spvTextToBinary(ScopedContext().context, text.str,
38 text.length, &my_binary, &diagnostic));
39 ASSERT_NE(nullptr, my_binary);
40 spvBinaryDestroy(my_binary);
41}
42
43} // namespace
44} // namespace spvtools

Callers

nothing calls this directly

Calls 3

spvTextToBinaryFunction · 0.85
ScopedContextClass · 0.85
spvBinaryDestroyFunction · 0.85

Tested by

no test coverage detected