(tb testing.TB, filename string, lines []string)
| 127 | } |
| 128 | |
| 129 | func UpdateSampleFile(tb testing.TB, filename string, lines []string) { |
| 130 | if us, _ := strconv.ParseBool(os.Getenv("UPDATE_SAMPLES")); !us { |
| 131 | return |
| 132 | } |
| 133 | WriteFile(tb, filename, lines) |
| 134 | } |
| 135 | |
| 136 | func UpdateSampleJSON(tb testing.TB, filename string, data interface{}) { |
| 137 | if us, _ := strconv.ParseBool(os.Getenv("UPDATE_SAMPLES")); !us { |
nothing calls this directly
no test coverage detected