(t *testing.T, actualBytes []byte)
| 61 | } |
| 62 | |
| 63 | func assertTestData(t *testing.T, actualBytes []byte) { |
| 64 | path := testCaseDataFilePath(t.Name()) |
| 65 | if !fileExists(path) { |
| 66 | if allowTestDataCapture { |
| 67 | helperCaptureBytes(t, actualBytes) |
| 68 | } else { |
| 69 | t.Fatalf("missing test data: %s", path) |
| 70 | } |
| 71 | } |
| 72 | expectedBytes := helperLoadBytes(t) |
| 73 | helperCheckDiff(t, expectedBytes, actualBytes) |
| 74 | } |
| 75 | |
| 76 | func initializeTestViewModel(t *testing.T) *FileTreeViewModel { |
| 77 | result := docker.TestAnalysisFromArchive(t, "../../../.data/test-docker-image.tar") |
no test coverage detected