Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for init (0.13 sec)

  1. src/archive/zip/reader_test.go

    	if len(r.File) != 5 {
    		t.Errorf("Archive has unexpected number of files, got %d, want 5", len(r.File))
    	}
    }
    
    func TestCVE202139293(t *testing.T) {
    	// directory size is so large, that the check in Reader.init
    	// overflows when subtracting from the archive size, causing
    	// the pre-allocation check to be bypassed.
    	data := []byte{
    		0x50, 0x4b, 0x06, 0x06, 0x05, 0x06, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x4b,
    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)
  2. src/bufio/bufio_test.go

    }
    
    func TestReaderDiscard(t *testing.T) {
    	tests := []struct {
    		name     string
    		r        io.Reader
    		bufSize  int // 0 means 16
    		peekSize int
    
    		n int // input to Discard
    
    		want    int   // from Discard
    		wantErr error // from Discard
    
    		wantBuffered int
    	}{
    		{
    			name:         "normal case",
    			r:            strings.NewReader("abcdefghijklmnopqrstuvwxyz"),
    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)
  3. src/bytes/bytes_test.go

    }
    
    func bmIndexRuneASCII(index func([]byte, rune) int) func(b *testing.B, n int) {
    	return func(b *testing.B, n int) {
    		buf := bmbuf[0:n]
    		buf[n-1] = 'x'
    		for i := 0; i < b.N; i++ {
    			j := index(buf, 'x')
    			if j != n-1 {
    				b.Fatal("bad index", j)
    			}
    		}
    		buf[n-1] = '\x00'
    	}
    }
    
    func bmIndexRune(index func([]byte, rune) int) func(b *testing.B, n int) {
    	return func(b *testing.B, n int) {
    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)
  4. src/cmd/cgo/gcc.go

    var dwarfToName = map[string]string{
    	"long int":               "long",
    	"long unsigned int":      "ulong",
    	"unsigned int":           "uint",
    	"short unsigned int":     "ushort",
    	"unsigned short":         "ushort", // Used by Clang; issue 13129.
    	"short int":              "short",
    	"long long int":          "longlong",
    	"long long unsigned int": "ulonglong",
    	"signed char":            "schar",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top