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