We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37788b8 commit 9f84df7Copy full SHA for 9f84df7
src/cmd/go/go_test.go
@@ -791,19 +791,6 @@ func (tg *testgoData) mustNotExist(path string) {
791
}
792
793
794
-// mustHaveContent succeeds if filePath is a path to a file,
795
-// and that file is readable and not empty.
796
-func (tg *testgoData) mustHaveContent(filePath string) {
797
- tg.mustExist(filePath)
798
- f, err := os.Stat(filePath)
799
- if err != nil {
800
- tg.t.Fatal(err)
801
- }
802
- if f.Size() == 0 {
803
- tg.t.Fatalf("expected %s to have data, but is empty", filePath)
804
805
-}
806
-
807
// wantExecutable fails with msg if path is not executable.
808
func (tg *testgoData) wantExecutable(path, msg string) {
809
tg.t.Helper()
0 commit comments