(t *testing.T, m Meta)
| 16 | const fixturesDir = "./test-fixtures" |
| 17 | |
| 18 | func fatalCommand(t *testing.T, m Meta) { |
| 19 | ui := m.Ui.(*packersdk.BasicUi) |
| 20 | out := ui.Writer.(*bytes.Buffer) |
| 21 | err := ui.ErrorWriter.(*bytes.Buffer) |
| 22 | t.Fatalf( |
| 23 | "Bad exit code.\n\nStdout:\n\n%s\n\nStderr:\n\n%s", |
| 24 | out.String(), |
| 25 | err.String()) |
| 26 | } |
| 27 | |
| 28 | func testFixtureContent(n ...string) string { |
| 29 | path := filepath.Join(append([]string{fixturesDir}, n...)...) |
no test coverage detected
searching dependent graphs…