Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Nest (0.24 sec)

  1. src/bufio/bufio_test.go

    	src := make([]byte, 10)
    	eofR := &eofReader{buf: src}
    	r := NewReader(eofR)
    
    	// Start by reading 5 of the 10 available bytes.
    	dest := make([]byte, 5)
    	read, err := r.Read(dest)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if n := len(dest); read != n {
    		t.Fatalf("read %d bytes; wanted %d bytes", read, n)
    	}
    
    	// The Reader should have buffered all the content from the io.Reader.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    func TestFS(t *testing.T) {
    	for _, test := range []struct {
    		file string
    		want []string
    	}{
    		{
    			"testdata/unix.zip",
    			[]string{"hello", "dir/bar", "readonly"},
    		},
    		{
    			"testdata/subdir.zip",
    			[]string{"a/b/c"},
    		},
    	} {
    		test := test
    		t.Run(test.file, func(t *testing.T) {
    			t.Parallel()
    			z, err := OpenReader(test.file)
    			if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/amd64enc_extra.s

    	SHA256MSG2 (R11), X11    // 450f38cd1b
    	SHA256MSG2 X2, X11       // 440f38cdda
    	SHA256MSG2 X11, X11      // 450f38cddb
    	// Test VPERMQ with both uint8 and int8 immediate args
    	VPERMQ $-40, Y8, Y8 // c443fd00c0d8
    	VPERMQ $216, Y8, Y8 // c443fd00c0d8
    	// Test that VPERMPD that shares ytab list with VPERMQ continues to work too.
    	VPERMPD $-40, Y7, Y7 // c4e3fd01ffd8
    	VPERMPD $216, Y7, Y7 // c4e3fd01ffd8
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 11 18:32:50 GMT 2023
    - 57.6K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    		{"a☺b☻c☹d", "b", len("a☺")},               // non-ascii
    	}
    	for _, test := range testCases {
    		actual := LastIndexByte([]byte(test.a), test.b[0])
    		if actual != test.i {
    			t.Errorf("LastIndexByte(%q,%c) = %v; want %v", test.a, test.b[0], actual, test.i)
    		}
    	}
    }
    
    // test a larger buffer with different sizes and alignments
    func TestIndexByteBig(t *testing.T) {
    	var n = 1024
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    }
    
    // badPointerTypedef reports whether dt is a C typedef that should not be
    // considered a pointer in Go. A typedef is bad if C code sometimes stores
    // non-pointers in this type.
    // TODO: Currently our best solution is to find these manually and list them as
    // they come up. A better solution is desired.
    // Note: DEPRECATED. There is now a better solution. Search for incomplete in this file.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/arm64.s

    	FMOVD	0x1006ff8(R1), F2	// FMOVD	16805880(R1), F2	// 3bfc7f9162ff7ffd
    
    // very large or unaligned offset uses constant pool.
    // the encoding cannot be checked as the address of the constant pool is unknown.
    // here we only test that they can be assembled.
    	MOVB	R1, 0x1000000(R2)	// MOVB		R1, 16777216(R2)
    	MOVB	R1, 0x44332211(R2)	// MOVB		R1, 1144201745(R2)
    	MOVH	R1, 0x1001000(R2)	// MOVH		R1, 16781312(R2)
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 94.9K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/testdata/ppc64.s

    	// Hex constant 0x20004000000
    	MOVD $2199090364416, R5         // 60058001
    	// Hex constant 0xFFFFFE0004000000
    	MOVD $-2198956146688, R5        // 38a08001
    	// TODO: On GOPPC64={power8,power9}, this is preprocessed into MOVD $-1, R5; RLDC R5, $33, $63, R5.
    	//       This only captures the MOVD. Should the RLDC be appended to the encoding by the test?
    	// Hex constant 0xFFFFFFFE00000001
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Apr 24 15:53:25 GMT 2024
    - 49K bytes
    - Viewed (0)
Back to top