(t *testing.T, filename, contents, want string)
| 13 | ) |
| 14 | |
| 15 | func testFormat(t *testing.T, filename, contents, want string) { |
| 16 | got, err := NewFormatter().Format(filename, []byte(contents)) |
| 17 | assert.NoError(t, err) |
| 18 | assert.Equal(t, want, string(got)) |
| 19 | } |
| 20 | |
| 21 | func Test_FormatMain(t *testing.T) { |
| 22 | contents := `package main |
no test coverage detected
searching dependent graphs…