Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Failure (0.12 sec)

  1. src/internal/trace/testtrace/expectation.go

    func (e *Expectation) Check(err error) error {
    	if !e.failure && err != nil {
    		return fmt.Errorf("unexpected error while reading the trace: %v", err)
    	}
    	if e.failure && err == nil {
    		return fmt.Errorf("expected error while reading the trace: want something matching %q, got none", e.errorMatcher)
    	}
    	if e.failure && err != nil && !e.errorMatcher.MatchString(err.Error()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/crypto/tls/alert.go

    	alertDecryptionFailed:             "decryption failed",
    	alertRecordOverflow:               "record overflow",
    	alertDecompressionFailure:         "decompression failure",
    	alertHandshakeFailure:             "handshake failure",
    	alertBadCertificate:               "bad certificate",
    	alertUnsupportedCertificate:       "unsupported certificate",
    	alertCertificateRevoked:           "revoked certificate",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/tests/go122-create-syscall-with-p.test

    -- expect --
    FAILURE ".*expected a proc but didn't have one.*"
    -- trace --
    Trace Go1.22
    EventBatch gen=1 m=0 time=0 size=34
    GoCreateSyscall dt=1 new_g=4
    ProcStatus dt=1 p=0 pstatus=2
    ProcStart dt=1 p=0 p_seq=1
    GoSyscallEndBlocked dt=1
    GoStart dt=1 g=4 g_seq=1
    GoSyscallBegin dt=1 p_seq=2 stack=0
    GoDestroySyscall dt=1
    GoCreateSyscall dt=1 new_g=4
    GoSyscallEnd dt=1
    GoSyscallBegin dt=1 p_seq=3 stack=0
    GoDestroySyscall dt=1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 624 bytes
    - Viewed (0)
  4. src/internal/trace/testdata/tests/go122-fail-first-gen-first.test

    -- expect --
    FAILURE "expected a proc but didn't have one"
    -- trace --
    Trace Go1.22
    EventBatch gen=1 m=0 time=0 size=5
    Frequency freq=15625000
    EventBatch gen=1 m=0 time=0 size=5
    GoCreate dt=0 new_g=1 new_stack=0 stack=0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 256 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    	size    int64
    	cur     int64
    	mu      sync.Mutex
    	waiters list.List
    }
    
    // Acquire acquires the semaphore with a weight of n, blocking until resources
    // are available or ctx is done. On success, returns nil. On failure, returns
    // ctx.Err() and leaves the semaphore unchanged.
    func (s *Weighted) Acquire(ctx context.Context, n int64) error {
    	done := ctx.Done()
    
    	s.mu.Lock()
    	select {
    	case <-done:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. 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)
  7. src/go/types/conversions.go

    // is tricky because we'd have to run updateExprType on the argument first.
    // (go.dev/issue/21982.)
    
    // convertibleTo reports whether T(x) is valid. In the failure case, *cause
    // may be set to the cause for the failure.
    // The check parameter may be nil if convertibleTo is invoked through an
    // exported API call, i.e., when all methods have been type-checked.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/testprog/cpu-profile.go

    					leaf = line.Function.Name
    				}
    			}
    			// runtime.sigprof synthesizes call stacks when "normal traceback is
    			// impossible or has failed", using particular placeholder functions
    			// to represent common failure cases. Look for those functions in
    			// the leaf position as a sign that the call stack and its
    			// symbolization are more complex than this test can handle.
    			//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/testing/example.go

    // recovered is the result of invoking recover after running the test, in case it panicked.
    //
    // If stdout doesn't match the expected output or if recovered is non-nil, it'll print the cause of failure to stdout.
    // If the test is chatty/verbose, it'll print a success message to stdout.
    // If recovered is non-nil, it'll panic with that value.
    // If the test panicked with nil, or invoked runtime.Goexit, it'll be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/test2json/main.go

    //
    // When a benchmark runs, it typically produces a single line of output
    // giving timing results. That line is reported in an event with Action == "output"
    // and no Test field. If a benchmark logs output or reports a failure
    // (for example, by using b.Log or b.Error), that extra output is reported
    // as a sequence of events with Test set to the benchmark name, terminated
    // by a final event with Action == "bench" or "fail".
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top