Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 88 for Failure (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/link/internal/ld/go_test.go

    		t.Fatal(err)
    	}
    
    	exe := filepath.Join(dir, "deduped.exe")
    	out, err := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", exe, srcFile).CombinedOutput()
    	if err != nil {
    		t.Fatalf("build failure: %s\n%s\n", err, string(out))
    	}
    
    	// Result should be runnable.
    	if _, err = testenv.Command(t, exe).CombinedOutput(); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/mono_test.go

    		return nil
    	}
    	return errors.New(strings.TrimRight(buf.String(), "\n"))
    }
    
    func TestMonoGood(t *testing.T) {
    	for i, good := range goods {
    		if err := checkMono(t, good); err != nil {
    			t.Errorf("%d: unexpected failure: %v", i, err)
    		}
    	}
    }
    
    func TestMonoBad(t *testing.T) {
    	for i, bad := range bads {
    		if err := checkMono(t, bad); err == nil {
    			t.Errorf("%d: unexpected success", i)
    		} else {
    			t.Log(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/vendor/golang.org/x/sys/plan9/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.ErrorString.
    package plan9 // import "golang.org/x/sys/plan9"
    
    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
    - 3.3K bytes
    - Viewed (0)
  9. test/stress/runstress.go

    	out, err := cmd.CombinedOutput()
    	if exit == 1 {
    		if err == nil {
    			log.Fatal("stressExec: unexpected exec success")
    		}
    		return
    	}
    	if err != nil {
    		log.Fatalf("stressExec: exec failure: %v: %s", err, out)
    	}
    	wantOutput += "\n"
    	if string(out) != wantOutput {
    		log.Fatalf("stressExec: exec output = %q; want %q", out, wantOutput)
    	}
    	Println("did exec")
    }
    
    func stressExec() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. src/net/http/httptrace/trace.go

    	// if there's already an idle cached connection available.
    	GetConn func(hostPort string)
    
    	// GotConn is called after a successful connection is
    	// obtained. There is no hook for failure to obtain a
    	// connection; instead, use the error from
    	// Transport.RoundTrip.
    	GotConn func(GotConnInfo)
    
    	// PutIdleConn is called when the connection is returned to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top