(tb testing.TB, filename string, data interface{})
| 134 | } |
| 135 | |
| 136 | func UpdateSampleJSON(tb testing.TB, filename string, data interface{}) { |
| 137 | if us, _ := strconv.ParseBool(os.Getenv("UPDATE_SAMPLES")); !us { |
| 138 | return |
| 139 | } |
| 140 | WriteJson(tb, filename, data) |
| 141 | } |
| 142 | |
| 143 | func WriteFile(tb testing.TB, filename string, lines []string) { |
| 144 | file := filepath.Join("testdata", filename) |
nothing calls this directly
no test coverage detected