Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 242 for Failure (0.09 sec)

  1. src/cmd/cgo/internal/testsanitizers/msan_test.go

    			cmd := hangProneCmd(outPath)
    			if tc.wantErr {
    				out, err := cmd.CombinedOutput()
    				if err != nil {
    					return
    				}
    				t.Fatalf("%#q exited without error; want MSAN failure\n%s", strings.Join(cmd.Args, " "), out)
    			}
    			mustRun(t, cmd)
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/internal/saferio/io_test.go

    	t.Run("maxint", func(t *testing.T) {
    		c := SliceCap[byte](1 << 63)
    		if c >= 0 {
    			t.Errorf("SliceCap returned %d, expected failure", c)
    		}
    	})
    
    	t.Run("overflow", func(t *testing.T) {
    		c := SliceCap[int64](1 << 62)
    		if c >= 0 {
    			t.Errorf("SliceCap returned %d, expected failure", c)
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/elf_test.go

    	argv := []string{"build", "-o", path, filepath.Join(wd, "testdata", "issue39256")}
    	out, err := testenv.Command(t, testenv.GoToolPath(t), argv...).CombinedOutput()
    	if err != nil {
    		t.Fatalf("Build failure: %s\n%s\n", err, string(out))
    	}
    
    	f, err := elf.Open(path)
    	if err != nil {
    		t.Fatalf("Failed to open ELF file: %v", err)
    	}
    	libs, err := f.ImportedLibraries()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/debug/pe/file.go

    	var err error
    	read := func(data any) bool {
    		err = binary.Read(r, binary.LittleEndian, data)
    		return err == nil
    	}
    
    	if !read(&ohMagic) {
    		return nil, fmt.Errorf("failure to read optional header magic: %v", err)
    
    	}
    
    	switch ohMagic {
    	case 0x10b: // PE32
    		var (
    			oh32 OptionalHeader32
    			// There can be 0 or more data directories. So the minimum size of optional
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  5. test/chanlinear.go

    // tries is the initial number of iterations.
    func checkLinear(typ string, tries int, f func(n int)) {
    	// Depending on the machine and OS, this test might be too fast
    	// to measure with accurate enough granularity. On failure,
    	// make it run longer, hoping that the timing granularity
    	// is eventually sufficient.
    
    	timeF := func(n int) time.Duration {
    		t1 := time.Now()
    		f(n)
    		return time.Since(t1)
    	}
    
    	t0 := time.Now()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. src/internal/testenv/exec.go

    			// The command timed out due to running too close to the test's deadline.
    			// There is no way the test did that intentionally — it's too close to the
    			// wire! — so mark it as a test failure. That way, if the test expects the
    			// command to fail for some other reason, it doesn't have to distinguish
    			// between that reason and a timeout.
    			t.Errorf("test timed out while running command: %v", cmd)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 27 17:53:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go

    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    // assertableTo checks whether interface v can be asserted into t. It returns
    // nil on success, or the first conflicting method on failure.
    func assertableTo(free *typeparams.Free, v, t types.Type) *types.Func {
    	if t == nil || v == nil {
    		// not assertable to, but there is no missing method
    		return nil
    	}
    	// ensure that v and t are interfaces
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. src/go/parser/interface.go

    // [ast.Object] for details.
    //
    // Position information is recorded in the file set fset, which must not be
    // nil.
    //
    // If the source couldn't be read, the returned AST is nil and the error
    // indicates the specific failure. If the source was read but syntax
    // errors were found, the result is a partial AST (with [ast.Bad]* nodes
    // representing the fragments of erroneous source code). Multiple errors
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall.go

    // the manuals for the appropriate operating system.
    //
    // These calls return err == nil to indicate success; otherwise
    // err represents an operating system error describing the failure and
    // holds a value of type syscall.Errno.
    package unix // import "golang.org/x/sys/unix"
    
    import (
    	"bytes"
    	"strings"
    	"unsafe"
    )
    
    // ByteSliceFromString returns a NUL-terminated slice of bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. src/crypto/tls/auth.go

    		}
    		if !ecdsa.VerifyASN1(pubKey, signed, sig) {
    			return errors.New("ECDSA verification failure")
    		}
    	case signatureEd25519:
    		pubKey, ok := pubkey.(ed25519.PublicKey)
    		if !ok {
    			return fmt.Errorf("expected an Ed25519 public key, got %T", pubkey)
    		}
    		if !ed25519.Verify(pubKey, signed, sig) {
    			return errors.New("Ed25519 verification failure")
    		}
    	case signaturePKCS1v15:
    		pubKey, ok := pubkey.(*rsa.PublicKey)
    		if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top