1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00

testlib: Add missing comment

This commit is contained in:
Alberto Bertogli
2018-06-04 00:06:23 +01:00
parent bbe9f4187d
commit 5adb13311b

View File

@@ -38,6 +38,7 @@ func RemoveIfOk(t *testing.T, dir string) {
}
}
// Rewrite a file with the given contents.
func Rewrite(t *testing.T, path, contents string) error {
// Safeguard, to make sure we only mess with test files.
if !strings.Contains(path, "testlib_") {