Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 88 for Failure (0.12 sec)

  1. src/testing/iotest/reader_test.go

    	}
    }
    
    func TestErrReader(t *testing.T) {
    	cases := []struct {
    		name string
    		err  error
    	}{
    		{"nil error", nil},
    		{"non-nil error", errors.New("io failure")},
    		{"io.EOF", io.EOF},
    	}
    
    	for _, tt := range cases {
    		tt := tt
    		t.Run(tt.name, func(t *testing.T) {
    			n, err := ErrReader(tt.err).Read(nil)
    			if err != tt.err {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 07:03:10 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    	Run:  run,
    	Requires: []*analysis.Analyzer{
    		inspect.Analyzer,
    		ctrlflow.Analyzer,
    	},
    }
    
    const debug = false
    
    var contextPackage = "context"
    
    // checkLostCancel reports a failure to the call the cancel function
    // returned by context.WithCancel, either because the variable was
    // assigned to the blank identifier, or because there exists a
    // control-flow path from the call to a return statement and that path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. src/syscall/syscall_wasip1.go

    		return "virtual timer expired"
    	case SIGPROF:
    		return "profiling timer expired"
    	case SIGWINCH:
    		return "window changed"
    	case SIGPOLL:
    		return "I/O possible"
    	case SIGPWR:
    		return "power failure"
    	case SIGSYS:
    		return "bad system call"
    	default:
    		return "signal " + itoa.Itoa(int(s))
    	}
    }
    
    const (
    	Stdin  = 0
    	Stdout = 1
    	Stderr = 2
    )
    
    const (
    	O_RDONLY = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/internal/trace/internal/testgen/go122/trace.go

    	}
    
    	// Write generations.
    	for _, g := range t.gens {
    		g.writeEventsTo(tw)
    	}
    
    	// Expectation file contents.
    	expect := []byte("SUCCESS\n")
    	if t.bad {
    		expect = []byte(fmt.Sprintf("FAILURE %q\n", t.badMatch))
    	}
    
    	// Create the test file's contents.
    	return txtar.Format(&txtar.Archive{
    		Files: []txtar.File{
    			{Name: "expect", Data: expect},
    			{Name: "trace", Data: buf.Bytes()},
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_tidy_convergence_loop.txt

    # resolved. This is important because it prevents the iteration from ever
    # reaching a state in which every package is simultaneously over-upgraded — such
    # a state is stable and does not exhibit failure to converge.
    
    cp go.mod go.mod.orig
    
    # 'go mod tidy' without -e should fail without modifying go.mod,
    # because it cannot resolve x, y, and z simultaneously.
    ! go mod tidy
    
    cmp go.mod go.mod.orig
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. src/crypto/x509/cert_pool.go

    	// not specified in the certificate itself.
    	constraint func([]*Certificate) error
    
    	// getCert returns the certificate.
    	//
    	// It is not meant to do network operations or anything else
    	// where a failure is likely; the func is meant to lazily
    	// parse/decompress data that is already known to be good. The
    	// error in the signature primarily is meant for use in the
    	// case where a cert file existed on local disk when the program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cover_statements.txt

    # always behave reliably/deterministically, however if other tests are
    # concurrently accessing the cache while this test is running, it can
    # lead to cache lookup failures, which manifest as test failures here.
    # To avoid such flakes, use a separate isolated GOCACHE for this test.
    env GOCACHE=$WORK/cache
    
    # Initial run with simple coverage.
    go test -cover ./pkg1 ./pkg2 ./pkg3 ./pkg4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:36:30 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  8. src/internal/bytealg/index_ppc64x.go

    //go:build ppc64 || ppc64le
    
    package bytealg
    
    import "internal/cpu"
    
    const MaxBruteForce = 16
    
    var SupportsPower9 = cpu.PPC64.IsPOWER9
    
    func init() {
    	MaxLen = 32
    }
    
    // Cutover reports the number of failures of IndexByte we should tolerate
    // before switching over to Index.
    // n is the number of bytes processed so far.
    // See the bytes.Index implementation for details.
    func Cutover(n int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 09 05:34:46 UTC 2023
    - 637 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/cache_vet.txt

    env GO111MODULE=off
    
    [short] skip
    [GODEBUG:gocacheverify=1] skip
    [compiler:gccgo] skip  # gccgo has no standard packages
    
    # Start with a clean build cache:
    # test failures may be masked if the cache has just the right entries already.
    env GOCACHE=$WORK/cache
    
    # Run 'go vet os/user' once to warm up the cache.
    go vet os/user
    
    # Check that second vet reuses cgo-derived inputs.
    # The first command could be build instead of vet,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 721 bytes
    - Viewed (0)
  10. src/runtime/debuglog_test.go

    	}
    	atomic.StoreInt32(&done, 1)
    	wg.Wait()
    
    	gotFull := runtime.DumpDebugLog()
    	got := dlogCanonicalize(gotFull)
    	if got != want.String() {
    		// Since the timestamps are useful in understand
    		// failures of this test, we print the uncanonicalized
    		// output.
    		t.Fatalf("want %q, got (uncanonicalized) %q", want.String(), gotFull)
    	}
    }
    
    func TestDebugLogWraparound(t *testing.T) {
    	skipDebugLog(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
Back to top