- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNopCloserWriterToForwarding (0.29 sec)
-
src/io/io_test.go
rb = new(Buffer) wb = largeWriter{err: want} rb.WriteString("hello, world.") if _, err := Copy(wb, rb); err != want { t.Errorf("Copy error: got %v, want %v", err, want) } } func TestNopCloserWriterToForwarding(t *testing.T) { for _, tc := range [...]struct { Name string r Reader }{ {"not a WriterTo", Reader(nil)}, {"a WriterTo", struct { Reader WriterTo }{}}, } {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:04:41 UTC 2023 - 18.9K bytes - Viewed (0)