Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestReadFrom (0.06 sec)

  1. src/archive/tar/writer_test.go

    			testWrite{"a", 0, ErrWriteTooLong},
    			testReadFrom{fileOps{""}, 0, nil},
    			testReadFrom{fileOps{"a"}, 0, ErrWriteTooLong},
    			testRemaining{0, 0},
    		},
    	}, {
    		maker: makeReg{1, "a"},
    		tests: []testFnc{
    			testRemaining{1, 1},
    			testWrite{"", 0, nil},
    			testWrite{"a", 1, nil},
    			testWrite{"bcde", 0, ErrWriteTooLong},
    			testWrite{"", 0, nil},
    			testReadFrom{fileOps{""}, 0, nil},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	if b.String() != "<nil>" {
    		t.Errorf("expected <nil>; got %q", b.String())
    	}
    }
    
    func TestReadFrom(t *testing.T) {
    	var buf Buffer
    	for i := 3; i < 30; i += 3 {
    		s := fillBytes(t, "TestReadFrom (1)", &buf, "", 5, testBytes[:len(testBytes)/i])
    		var b Buffer
    		b.ReadFrom(&buf)
    		empty(t, "TestReadFrom (2)", &b, s, make([]byte, len(testString)))
    	}
    }
    
    type panicReader struct{ panic bool }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top