Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for Schuck (0.17 sec)

  1. src/bytes/buffer_test.go

    		check(t, "TestBasicOperations (1)", &buf, "")
    
    		buf.Reset()
    		check(t, "TestBasicOperations (2)", &buf, "")
    
    		buf.Truncate(0)
    		check(t, "TestBasicOperations (3)", &buf, "")
    
    		n, err := buf.Write(testBytes[0:1])
    		if want := 1; err != nil || n != want {
    			t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil)
    		}
    		check(t, "TestBasicOperations (4)", &buf, "a")
    
    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/api/api_test.go

    }
    
    var (
    	updateGolden = flag.Bool("updategolden", false, "update golden files")
    )
    
    func TestGolden(t *testing.T) {
    	if *flagCheck {
    		// slow, not worth repeating in -check
    		t.Skip("skipping with -check set")
    	}
    
    	testenv.MustHaveGoBuild(t)
    
    	td, err := os.Open("testdata/src/pkg")
    	if err != nil {
    		t.Fatal(err)
    	}
    	fis, err := td.Readdir(0)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, fi := range fis {
    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)
  3. src/cmd/cgo/internal/swig/swig_test.go

    	if !haveSwig {
    		t.Skip("swig not found")
    	}
    }
    
    func mustHaveSwigOnce(t *testing.T) {
    	swig, err := exec.LookPath("swig")
    	if err != nil {
    		t.Skipf("swig not in PATH: %s", err)
    	}
    
    	// Check that swig was installed with Go support by checking
    	// that a go directory exists inside the swiglib directory.
    	// See https://golang.org/issue/23469.
    	output, err := exec.Command(swig, "-go", "-swiglib").Output()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/archive/zip/fuzz_test.go

    				t.Fatalf("unable to write previously parsed content: %s", err)
    			}
    		}
    
    		if err := w.Close(); err != nil {
    			t.Fatalf("Unable to write archive: %s", err)
    		}
    
    		// TODO: We may want to check if the archive roundtrips.
    	})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  5. src/bufio/bufio_test.go

    		b.WriteString("1234")
    		tw.check(t, "", "")
    		b.WriteString("56789012")   // longer than BufSize
    		tw.check(t, "12345678", "") // but not enough (after filling the partially-filled buffer)
    		b.Flush()
    		tw.check(t, "123456789012", "")
    	}
    	{
    		tw := &teststringwriter{}
    		b := NewWriterSize(tw, BufSize)
    		b.WriteString("123456789")   // long string, empty buffer:
    		tw.check(t, "", "123456789") // use WriteString
    	}
    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)
  6. src/archive/zip/reader_test.go

    	}
    }
    
    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)
  7. src/cmd/cgo/ast.go

    					cg = decl.Doc
    				}
    				if cg != nil {
    					if strings.ContainsAny(abspath, "\r\n") {
    						// This should have been checked when the file path was first resolved,
    						// but we double check here just to be sure.
    						fatalf("internal error: ParseGo: abspath contains unexpected newline character: %q", abspath)
    					}
    					f.Preamble += fmt.Sprintf("#line %d %q\n", sourceLine(cg), abspath)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  8. api/go1.5.txt

    pkg go/types, method (*Chan) Elem() Type
    pkg go/types, method (*Chan) String() string
    pkg go/types, method (*Chan) Underlying() Type
    pkg go/types, method (*Checker) Files([]*ast.File) error
    pkg go/types, method (*Config) Check(string, *token.FileSet, []*ast.File, *Info) (*Package, error)
    pkg go/types, method (*Const) Exported() bool
    pkg go/types, method (*Const) Id() string
    pkg go/types, method (*Const) Name() string
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/testdata/amd64enc_extra.s

    	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
    	// Check that LEAL is permitted to use overflowing offset.
    	LEAL 2400959708(BP)(R10*1), BP // 428dac15dcbc1b8f
    	LEAL 3395469782(AX)(R10*1), AX // 428d8410d6c162ca
    	// Make sure MOV CR/DR continues to work after changing its movtabs.
    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)
  10. src/cmd/cgo/internal/test/callback.go

    	for _, f := range splitTests {
    		f()
    	}
    }
    
    //export goStackCheck
    func goStackCheck() {
    	// use some stack memory to trigger split stack check
    	var buf [256]byte
    	use(buf[:])
    }
    
    var Used byte
    
    func use(buf []byte) {
    	for _, c := range buf {
    		Used += c
    	}
    }
    
    var splitTests = []func(){
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
Back to top