Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for hala (0.14 sec)

  1. src/archive/zip/zip_test.go

    	h.SetModTime(ts)
    
    	testValidHeader(&h, t)
    }
    
    func TestHeaderTooShort(t *testing.T) {
    	h := FileHeader{
    		Name:   "foo.txt",
    		Method: Deflate,
    		Extra:  []byte{zip64ExtraID}, // missing size and second half of tag, but Extra is best-effort parsing
    	}
    	testValidHeader(&h, t)
    }
    
    func TestHeaderTooLongErr(t *testing.T) {
    	var headerTests = []struct {
    		name    string
    		extra   []byte
    		wanterr error
    	}{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  2. src/bytes/bytes.go

    // 128 ASCII characters. The 128-bits of the upper 16 bytes will be zeroed,
    // ensuring that any non-ASCII character will be reported as not in the set.
    // This allocates a total of 32 bytes even though the upper half
    // is unused to avoid bounds checks in asciiSet.contains.
    type asciiSet [8]uint32
    
    // makeASCIISet creates a set of ASCII characters and reports whether all
    // characters in chars are ASCII.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    	}
    }
    
    type readMaker struct {
    	name string
    	fn   func(io.Reader) io.Reader
    }
    
    var readMakers = []readMaker{
    	{"full", func(r io.Reader) io.Reader { return r }},
    	{"byte", iotest.OneByteReader},
    	{"half", iotest.HalfReader},
    	{"data+err", iotest.DataErrReader},
    	{"timeout", iotest.TimeoutReader},
    }
    
    // Call ReadString (which ends up calling everything else)
    // to accumulate the text of a file.
    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)
  4. src/archive/tar/reader_test.go

    		{"30 mtime=1350244992.023960108\n", map[string]string{"mtime": "1350244992.023960108"}, true},
    		{"3 somelongkey=\n", nil, false},
    		{"50 tooshort=\n", nil, false},
    		{"13 key1=haha\n13 key2=nana\n13 key3=kaka\n",
    			map[string]string{"key1": "haha", "key2": "nana", "key3": "kaka"}, true},
    		{"13 key1=val1\n13 key2=val2\n8 key1=\n",
    			map[string]string{"key1": "", "key2": "val2"}, true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    				n.Kind = "iconst"
    				// Turn decimal into hex, just for consistency
    				// with enum-derived constants. Otherwise
    				// in the cgo -godefs output half the constants
    				// are in hex and half are in whatever the #define used.
    				n.Const = fmt.Sprintf("%#x", i)
    			} else if n.Define[0] == '\'' {
    				if _, err := parser.ParseExpr(n.Define); err == nil {
    					n.Kind = "iconst"
    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