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

Function UpdateSampleJSON

testutils/testutils.go:136–141  ·  view source on GitHub ↗
(tb testing.TB, filename string, data interface{})

Source from the content-addressed store, hash-verified

134}
135
136func 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
143func WriteFile(tb testing.TB, filename string, lines []string) {
144 file := filepath.Join("testdata", filename)

Callers

nothing calls this directly

Calls 1

WriteJsonFunction · 0.85

Tested by

no test coverage detected