Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for failed (0.21 sec)

  1. src/bytes/compare_test.go

    	for i := 0; i < b.N; i++ {
    		if Compare(b1, b2) != -1 {
    			b.Fatal("b1 < b2 failed")
    		}
    	}
    }
    
    func BenchmarkCompareBytesDifferentLength(b *testing.B) {
    	b1 := []byte("Hello Gophers!")
    	b2 := []byte("Hello, Gophers!")
    	for i := 0; i < b.N; i++ {
    		if Compare(b1, b2) != -1 {
    			b.Fatal("b1 < b2 failed")
    		}
    	}
    }
    
    func benchmarkCompareBytesBigUnaligned(b *testing.B, offset int) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue27340.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    // Failed to resolve typedefs consistently.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    import "cmd/cgo/internal/test/issue27340"
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 377 bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    them as part of the Go package. Any .c, .s, .S or .sx files will be
    compiled with the C compiler. Any .cc, .cpp, or .cxx files will be
    compiled with the C++ compiler. Any .f, .F, .for or .f90 files will be
    compiled with the fortran compiler. Any .h, .hh, .hpp, or .hxx files will
    not be compiled separately, but, if these header files are changed,
    the package (including its non-Go source files) will be recompiled.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    	if err := tw.WriteHeader(hdr); err != nil {
    		t.Fatalf("Failed to write header: %s", err)
    	}
    	if _, err := tw.Write([]byte("fooo")); err != nil {
    		t.Fatalf("Failed to write the file's data: %s", err)
    	}
    	tw.Close()
    
    	tr := NewReader(&buffer)
    
    	for {
    		header, err := tr.Next()
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			t.Fatalf("Failed to read header: %s", err)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  5. misc/go_android_exec/main.go

    	if platformToolDir == "." {
    		return errors.New("failed to locate cmd/compile for target platform")
    	}
    	relToolDir, err := filepath.Rel(filepath.Join(goroot), platformToolDir)
    	if err != nil {
    		return err
    	}
    	if err := adb("push", platformToolDir, path.Join(deviceGoroot, relToolDir)); err != nil {
    		return err
    	}
    
    	// Copy all other files from GOROOT.
    	dirents, err := os.ReadDir(goroot)
    	if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  6. src/archive/tar/common.go

    	ErrFieldTooLong    = errors.New("archive/tar: header field too long")
    	ErrWriteAfterClose = errors.New("archive/tar: write after close")
    	ErrInsecurePath    = errors.New("archive/tar: insecure file path")
    	errMissData        = errors.New("archive/tar: sparse file references non-existent data")
    	errUnrefData       = errors.New("archive/tar: sparse file contains unreferenced data")
    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)
  7. src/archive/tar/reader_test.go

    			},
    			Format: FormatPAX,
    		}},
    	}, {
    		file: "testdata/pax-bad-hdr-file.tar",
    		err:  ErrHeader,
    	}, {
    		file: "testdata/pax-bad-hdr-large.tar.bz2",
    		err:  ErrFieldTooLong,
    	}, {
    		file: "testdata/pax-bad-mtime-file.tar",
    		err:  ErrHeader,
    	}, {
    		file: "testdata/pax-pos-size-file.tar",
    		headers: []*Header{{
    			Name:     "foo",
    			Mode:     0640,
    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)
  8. src/bufio/scan_test.go

    	scanner.MaxTokenSize(smallMaxTokenSize)
    	scanner.Split(ScanWords)
    	if !scanner.Scan() {
    		t.Fatalf("scan failed: %v", scanner.Err())
    	}
    	if token := scanner.Text(); token != word {
    		t.Fatalf("unexpected token: %v", token)
    	}
    }
    
    // Test that empty tokens, including at end of line or end of file, are found by the scanner.
    // Issue 8672: Could miss final empty token.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  9. src/bufio/bufio.go

    	b.r++
    	b.lastByte = int(c)
    	return c, nil
    }
    
    // UnreadByte unreads the last byte. Only the most recently read byte can be unread.
    //
    // UnreadByte returns an error if the most recent method called on the
    // [Reader] was not a read operation. Notably, [Reader.Peek], [Reader.Discard], and [Reader.WriteTo] are not
    // considered read operations.
    func (b *Reader) UnreadByte() error {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  10. src/archive/zip/writer.go

    }
    
    // Create adds a file to the zip file using the provided name.
    // It returns a [Writer] to which the file contents should be written.
    // The file contents will be compressed using the [Deflate] method.
    // The name must be a relative path: it must not start with a drive
    // letter (e.g. C:) or leading slash, and only forward slashes are
    // allowed. To create a directory instead of a file, add a trailing
    // slash to the name.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top