- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCloseOnWriter (0.07 sec)
-
internal/ioutil/ioutil_test.go
t.Errorf("DeadlineWriter should succeed but failed with %s", err) } if n != 4 { t.Errorf("DeadlineWriter should succeed but should have only written 4 bytes, but returned %d instead", n) } } func TestCloseOnWriter(t *testing.T) { writer := WriteOnClose(io.Discard) if writer.HasWritten() { t.Error("WriteOnCloser must not be marked as HasWritten") } writer.Write(nil) if !writer.HasWritten() {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 5.5K bytes - Viewed (0)