mustBuild is a test helper that calls Build() and fails the test if an error occurs. Use this for tests where Build() is not expected to fail.
(t *testing.T, b *Builder)
| 14 | // mustBuild is a test helper that calls Build() and fails the test if an error occurs. |
| 15 | // Use this for tests where Build() is not expected to fail. |
| 16 | func mustBuild(t *testing.T, b *Builder) *Inventory { |
| 17 | t.Helper() |
| 18 | inv, err := b.Build() |
| 19 | require.NoError(t, err) |
| 20 | return inv |
| 21 | } |
| 22 | |
| 23 | // testToolsetMetadata returns a ToolsetMetadata for testing |
| 24 | func testToolsetMetadata(id string) ToolsetMetadata { |
no test coverage detected