Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Tanghe (0.22 sec)

  1. src/cmd/api/api_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    			for _, feat := range w.Features() {
    				fmt.Fprintf(f, "%s\n", feat)
    			}
    			f.Close()
    		}
    
    		bs, err := os.ReadFile(goldenFile)
    		if err != nil {
    			t.Fatalf("opening golden.txt for package %q: %v", fi.Name(), err)
    		}
    		wanted := strings.Split(string(bs), "\n")
    		sort.Strings(wanted)
    		for _, feature := range wanted {
    			if feature == "" {
    				continue
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    	{"alpha\nbeta\ngamma", '\n', []string{"alpha\n", "beta\n", "gamma"}, io.EOF},
    }
    
    func TestReadBytes(t *testing.T) {
    	for _, test := range readBytesTests {
    		buf := NewBufferString(test.buffer)
    		var err error
    		for _, expected := range test.expected {
    			var bytes []byte
    			bytes, err = buf.ReadBytes(test.delim)
    			if string(bytes) != expected {
    				t.Errorf("expected %q, got %q", expected, bytes)
    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)
  3. src/archive/zip/reader_test.go

    	}
    
    	// test read of each file
    	for i, ft := range zt.File {
    		readTestFile(t, zt, ft, z.File[i], raw)
    	}
    	if t.Failed() {
    		return
    	}
    
    	// test simultaneous reads
    	n := 0
    	done := make(chan bool)
    	for i := 0; i < 5; i++ {
    		for j, ft := range zt.File {
    			go func(j int, ft ZipTestFile) {
    				readTestFile(t, zt, ft, z.File[j], raw)
    				done <- true
    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)
  4. doc/go1.17_spec.html

    	<li>the index <code>x</code> is <i>in range</i> if <code>0 &lt;= x &lt; len(a)</code>,
    	    otherwise it is <i>out of range</i></li>
    </ul>
    
    <p>
    For <code>a</code> of <a href="#Array_types">array type</a> <code>A</code>:
    </p>
    <ul>
    	<li>a <a href="#Constants">constant</a> index must be in range</li>
    	<li>if <code>x</code> is out of range at run time,
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/riscv64error.s

    	RORIW	$32, X5, X6			// ERROR "immediate out of range 0 to 31"
    	SLLIW	$32, X5, X6			// ERROR "immediate out of range 0 to 31"
    	SRLIW	$32, X5, X6			// ERROR "immediate out of range 0 to 31"
    	SRAIW	$32, X5, X6			// ERROR "immediate out of range 0 to 31"
    	RORIW	$-1, X5, X6			// ERROR "immediate out of range 0 to 31"
    	SLLIW	$-1, X5, X6			// ERROR "immediate out of range 0 to 31"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Apr 07 03:32:27 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. src/bytes/boundary_test.go

    func TestEqualNearPageBoundary(t *testing.T) {
    	t.Parallel()
    	b := dangerousSlice(t)
    	for i := range b {
    		b[i] = 'A'
    	}
    	for i := 0; i <= len(b); i++ {
    		Equal(b[:i], b[len(b)-i:])
    		Equal(b[len(b)-i:], b[:i])
    	}
    }
    
    func TestIndexByteNearPageBoundary(t *testing.T) {
    	t.Parallel()
    	b := dangerousSlice(t)
    	for i := range b {
    		idx := IndexByte(b[i:], 1)
    		if idx != -1 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 30 20:05:58 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. src/archive/tar/common.go

    	}
    
    	// Check PAX records.
    	if len(h.Xattrs) > 0 {
    		for k, v := range h.Xattrs {
    			paxHdrs[paxSchilyXattr+k] = v
    		}
    		whyOnlyPAX = "only PAX supports Xattrs"
    		format.mayOnlyBe(FormatPAX)
    	}
    	if len(h.PAXRecords) > 0 {
    		for k, v := range h.PAXRecords {
    			switch _, exists := paxHdrs[k]; {
    			case exists:
    				continue // Do not overwrite existing records
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  8. src/bytes/bytes_test.go

    	for i := 0; i <= 2*maxWnd; i++ {
    		for _, window := range windows {
    			if window > len(b[i:]) {
    				window = len(b[i:])
    			}
    			testCountWindow(i, window)
    			for j := 0; j < window; j++ {
    				b[i+j] = byte(0)
    			}
    		}
    	}
    	for i := 4096 - (maxWnd + 1); i < len(b); i++ {
    		for _, window := range windows {
    			if window > len(b[i:]) {
    				window = len(b[i:])
    			}
    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)
  9. doc/asm.html

    <code>R15</code> points to the stack frame and should typically only be accessed using the
    virtual registers <code>SP</code> and <code>FP</code>.
    </p>
    
    <p>
    Load- and store-multiple instructions operate on a range of registers.
    The range of registers is specified by a start register and an end register.
    For example, <code>LMG</code> <code>(R9),</code> <code>R5,</code> <code>R7</code> would load
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  10. src/bytes/example_test.go

    	fmt.Printf("%s\n", bytes.ReplaceAll([]byte("oink oink oink"), []byte("oink"), []byte("moo")))
    	// Output:
    	// moo moo moo
    }
    
    func ExampleRunes() {
    	rs := bytes.Runes([]byte("go gopher"))
    	for _, r := range rs {
    		fmt.Printf("%#U\n", r)
    	}
    	// Output:
    	// U+0067 'g'
    	// U+006F 'o'
    	// U+0020 ' '
    	// U+0067 'g'
    	// U+006F 'o'
    	// U+0070 'p'
    	// U+0068 'h'
    	// U+0065 'e'
    	// U+0072 'r'
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top