(t *testing.T, filename string)
| 939 | } |
| 940 | |
| 941 | func mustReadAndFormatGoFile(t *testing.T, filename string) string { |
| 942 | fmted, err := imports.Process(filename, nil, nil) |
| 943 | if err != nil { |
| 944 | t.Fatalf("reading and formatting file: %v", err) |
| 945 | } |
| 946 | return string(fmted) |
| 947 | } |
| 948 | |
| 949 | func outputResult(t *testing.T, tmpDir, testName string, got []byte) { |
| 950 | tmpResult := path.Join(tmpDir, toSnakeCase(testName)+".go") |
no test coverage detected