- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestReadClosed (0.15 sec)
-
src/os/os_test.go
} b = make([]byte, 100) n, err = f.Read(b) if n <= 0 || err != nil { t.Errorf("Read(100) = %d, %v, want >0, nil", n, err) } } // Reading a closed file should return ErrClosed error func TestReadClosed(t *testing.T) { t.Parallel() path := sfdir + "/" + sfname file, err := Open(path) if err != nil { t.Fatal("open failed:", err) } file.Close() // close immediately
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0)