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

Function MakeValidDiagnostic

test/diagnostic_test.cpp:28–33  ·  view source on GitHub ↗

Returns a newly created diagnostic value.

Source from the content-addressed store, hash-verified

26
27// Returns a newly created diagnostic value.
28spv_diagnostic MakeValidDiagnostic() {
29 spv_position_t position = {};
30 spv_diagnostic diagnostic = spvDiagnosticCreate(&position, "");
31 EXPECT_NE(nullptr, diagnostic);
32 return diagnostic;
33}
34
35TEST(Diagnostic, DestroyNull) { spvDiagnosticDestroy(nullptr); }
36

Callers 1

TESTFunction · 0.85

Calls 1

spvDiagnosticCreateFunction · 0.85

Tested by

no test coverage detected