Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 88 of 88 for Failure (0.23 sec)

  1. src/cmd/fix/main.go

    var (
    	doDiff    = flag.Bool("diff", false, "display diffs instead of rewriting files")
    	goVersion = flag.String("go", "", "go language version for files")
    )
    
    // enable for debugging fix failures
    const debug = false // display incorrectly reformatted source and exit
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go tool fix [-diff] [-r fixname,...] [-force fixname,...] [path ...]\n")
    	flag.PrintDefaults()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/cmd/internal/src/xpos.go

    // alternative behavior is to hang.
    func (p XPos) WithBogusLine() XPos {
    	if p.index == 0 {
    		// See #35652
    		panic("Assigning a bogus line to XPos with no file will cause mysterious downstream failures.")
    	}
    	p.lico = makeBogusLico()
    	return p
    }
    
    // WithXlogue returns the same location but marked with DWARF function prologue/epilogue
    func (p XPos) WithXlogue(x PosXlogue) XPos {
    	p.lico = p.lico.withXlogue(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/math/big/ratmarsh_test.go

    	var medium bytes.Buffer
    	enc := gob.NewEncoder(&medium)
    	dec := gob.NewDecoder(&medium)
    	for _, test := range encodingTests {
    		medium.Reset() // empty buffer for each test case (in case of failures)
    		var tx Rat
    		tx.SetString(test + ".14159265")
    		if err := enc.Encode(&tx); err != nil {
    			t.Errorf("encoding of %s failed: %s", &tx, err)
    			continue
    		}
    		var rx Rat
    		if err := dec.Decode(&rx); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 20:20:16 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  4. src/net/http/pprof/pprof_test.go

    	if err != nil {
    		t.Fatalf("error running profile collection: %v\noutput: %s", err, out)
    	}
    
    	// Log the binary output for debugging failures.
    	b64 := make([]byte, base64.StdEncoding.EncodedLen(len(out)))
    	base64.StdEncoding.Encode(b64, out)
    	t.Logf("Output in base64.StdEncoding: %s", b64)
    
    	p, err := profile.Parse(bytes.NewReader(out))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  5. test/typeparam/mdempsky/21.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that devirtualization doesn't introduce spurious type
    // assertion failures due to shaped and non-shaped interfaces having
    // distinct itabs.
    
    package main
    
    func main() {
    	F[int]()
    }
    
    func F[T any]() {
    	var i I[T] = X(0)
    	i.M()
    }
    
    type I[T any] interface{ M() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:26:32 UTC 2022
    - 467 bytes
    - Viewed (0)
  6. src/cmd/go/internal/bug/bug.go

    	} else {
    		if cfg.BuildV {
    			fmt.Printf("failed to run gdb --version: %v\n", err)
    		}
    	}
    }
    
    // printCmdOut prints the output of running the given command.
    // It ignores failures; 'go bug' is best effort.
    func printCmdOut(w io.Writer, prefix, path string, args ...string) {
    	cmd := exec.Command(path, args...)
    	out, err := cmd.Output()
    	if err != nil {
    		if cfg.BuildV {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. src/syscall/dll_windows.go

    // license that can be found in the LICENSE file.
    
    package syscall
    
    import (
    	"internal/syscall/windows/sysdll"
    	"sync"
    	"sync/atomic"
    	"unsafe"
    )
    
    // DLLError describes reasons for DLL load failures.
    type DLLError struct {
    	Err     error
    	ObjName string
    	Msg     string
    }
    
    func (e *DLLError) Error() string { return e.Msg }
    
    func (e *DLLError) Unwrap() error { return e.Err }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. src/math/big/floatmarsh_test.go

    				for _, mode := range []RoundingMode{ToNearestEven, ToNearestAway, ToZero, AwayFromZero, ToNegativeInf, ToPositiveInf} {
    					medium.Reset() // empty buffer for each test case (in case of failures)
    					x := sign + test
    
    					var tx Float
    					_, _, err := tx.SetPrec(prec).SetMode(mode).Parse(x, 0)
    					if err != nil {
    						t.Errorf("parsing of %s (%dbits, %v) failed (invalid test case): %v", x, prec, mode, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 23 18:18:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top