- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 85 for _new (0.22 sec)
-
src/bytes/buffer_test.go
func TestReadEmptyAtEOF(t *testing.T) { b := new(Buffer) slice := make([]byte, 0) n, err := b.Read(slice) if err != nil { t.Errorf("read error: %v", err) } if n != 0 { t.Errorf("wrong count; got %d want 0", n) } } func TestUnreadByte(t *testing.T) { b := new(Buffer) // check at EOF if err := b.UnreadByte(); err == nil {
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) -
src/cmd/cgo/ast.go
if err != nil { if list, ok := err.(scanner.ErrorList); ok { // If err is a scanner.ErrorList, its String will print just // the first error and then (+n more errors). // Instead, turn it into a new Error that will return // details for all the errors. for _, e := range list { fmt.Fprintln(os.Stderr, e) } os.Exit(2) } fatalf("parsing %s: %s", name, err) } return ast1 }
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) -
src/cmd/cgo/internal/test/callback.go
t.Fatal("wrong panic:", r) } }() C.callPanic() } // Test that C code can return a value if it calls a Go function that // causes a stack copy. func testReturnAfterGrow(t *testing.T) { // Use a new goroutine so that we get a small stack. c := make(chan int) go func() { c <- int(C.returnAfterGrow()) }() if got, want := <-c, 123456; got != want { t.Errorf("got %d want %d", got, want) } }
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) -
src/cmd/asm/internal/asm/testdata/amd64enc_extra.s
VADDPS.BCST 2032(DX)(AX*2), Z1, Z29 // 6261745858ac42f0070000 // Forced EVEX encoding due to suffixes. VADDPD.BCST 2032(DX), X0, X0 // 62f1fd185882f0070000 VADDPD.BCST 2032(DX), Y0, Y0 // 62f1fd385882f0070000 // Test new Z-cases one-by-one. // // Zevex_i_r_k_rm. VCVTPS2PH $1, Z2, K5, Y21 // 62b37d4d1dd501 VCVTPS2PH $2, Z21, K4, Y2 // 62e37d4c1dea02 // Zevex_i_r_rm. VCVTPS2PH $1, Z2, Y21 // 62b37d481dd501
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) -
src/archive/zip/reader_test.go
return messWith("crc32-not-streamed.zip", func(b []byte) { // Corrupt foo.txt's final crc32 byte, in both // the file header and TOC. (0x7e -> 0x7f) b[0x11]++ b[0x9d]++ // TODO(bradfitz): add a new test that only corrupts // one of these values, and verify that that's also an // error. Currently, the reader code doesn't verify the // fileheader and TOC's crc32 match if they're both
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) -
api/go1.3.txt
pkg runtime/debug, func WriteHeapDump(uintptr) pkg sync, method (*Pool) Get() interface{} pkg sync, method (*Pool) Put(interface{}) pkg sync, type Pool struct pkg sync, type Pool struct, New func() interface{} pkg syscall (darwin-386), func FcntlFlock(uintptr, int, *Flock_t) error pkg syscall (darwin-386), func Mlock([]uint8) error pkg syscall (darwin-386), func Mlockall(int) error
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Mon Jun 02 02:45:00 GMT 2014 - 117K bytes - Viewed (0) -
api/go1.13.txt
pkg log/syslog (netbsd-arm64-cgo), func Dial(string, string, Priority, string) (*Writer, error) pkg log/syslog (netbsd-arm64-cgo), func NewLogger(Priority, int) (*log.Logger, error) pkg log/syslog (netbsd-arm64-cgo), func New(Priority, string) (*Writer, error) pkg log/syslog (netbsd-arm64-cgo), method (*Writer) Alert(string) error pkg log/syslog (netbsd-arm64-cgo), method (*Writer) Close() error
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Aug 08 18:44:16 GMT 2019 - 452.6K bytes - Viewed (0) -
api/go1.14.txt
pkg syscall (freebsd-arm64), const SYS_THR_KILL2 = 481 pkg syscall (freebsd-arm64), const SYS_THR_KILL2 ideal-int pkg syscall (freebsd-arm64), const SYS_THR_NEW = 455 pkg syscall (freebsd-arm64), const SYS_THR_NEW ideal-int pkg syscall (freebsd-arm64), const SYS_THR_SELF = 432 pkg syscall (freebsd-arm64), const SYS_THR_SELF ideal-int pkg syscall (freebsd-arm64), const SYS_THR_SET_NAME = 464
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Feb 17 20:31:46 GMT 2023 - 508.9K bytes - Viewed (0) -
api/go1.txt
pkg syscall (freebsd-386), const SYS_CAP_ENTER ideal-int pkg syscall (freebsd-386), const SYS_CAP_GETMODE ideal-int pkg syscall (freebsd-386), const SYS_CAP_GETRIGHTS ideal-int pkg syscall (freebsd-386), const SYS_CAP_NEW ideal-int pkg syscall (freebsd-386), const SYS_CHDIR ideal-int pkg syscall (freebsd-386), const SYS_CHFLAGS ideal-int pkg syscall (freebsd-386), const SYS_CHMOD ideal-int
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (2) -
src/archive/zip/writer_test.go
testReadFile(t, src.File[i], &wt) } // make a new zip file copying the old compressed data. buf2 := new(bytes.Buffer) dst := NewWriter(buf2) for _, f := range src.File { if err := dst.Copy(f); err != nil { t.Fatal(err) } } if err := dst.Close(); err != nil { t.Fatal(err) } // read the new one back r, err := NewReader(bytes.NewReader(buf2.Bytes()), int64(buf2.Len()))
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Sep 15 19:04:06 GMT 2023 - 14.1K bytes - Viewed (0)