author | Alberto Bertogli
<albertito@blitiri.com.ar> 2018-06-03 23:06:23 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2018-06-03 23:06:23 UTC |
parent | bbe9f4187d6f9310588ae6c738141aa2eee8c0f8 |
internal/testlib/testlib.go | +1 | -0 |
diff --git a/internal/testlib/testlib.go b/internal/testlib/testlib.go index 638b47f..34299fe 100644 --- a/internal/testlib/testlib.go +++ b/internal/testlib/testlib.go @@ -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_") {