MCPcopy Create free account
hub / github.com/Percona-Lab/mysql_random_data_load / UpdateSampleFile

Function UpdateSampleFile

testutils/testutils.go:129–134  ·  view source on GitHub ↗
(tb testing.TB, filename string, lines []string)

Source from the content-addressed store, hash-verified

127}
128
129func 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
136func UpdateSampleJSON(tb testing.TB, filename string, data interface{}) {
137 if us, _ := strconv.ParseBool(os.Getenv("UPDATE_SAMPLES")); !us {

Callers

nothing calls this directly

Calls 1

WriteFileFunction · 0.85

Tested by

no test coverage detected