Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testutil (0.21 sec)

  1. src/bytes/buffer_test.go

    func TestCapWithSliceAndWrittenData(t *testing.T) {
    	buf := NewBuffer(make([]byte, 0, 10))
    	buf.Write([]byte("test"))
    	n := buf.Cap()
    	if n != 10 {
    		t.Errorf("expected 10, got %d", n)
    	}
    }
    
    func TestNil(t *testing.T) {
    	var b *Buffer
    	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 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/cgo_test.go

    func Test45451(t *testing.T)                 { test45451(t) }
    func Test49633(t *testing.T)                 { test49633(t) }
    func TestAlign(t *testing.T)                 { testAlign(t) }
    func TestAtol(t *testing.T)                  { testAtol(t) }
    func TestBlocking(t *testing.T)              { testBlocking(t) }
    func TestBoolAlign(t *testing.T)             { testBoolAlign(t) }
    func TestCallGoWithString(t *testing.T)      { testCallGoWithString(t) }
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 6.4K bytes
    - Viewed (0)
Back to top