Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for expects (0.25 sec)

  1. src/cmd/addr2line/main.go

    	fmt.Fprintf(w, "\tfile:line\n")
    }
    
    func usage() {
    	printUsage(os.Stderr)
    	os.Exit(2)
    }
    
    func main() {
    	log.SetFlags(0)
    	log.SetPrefix("addr2line: ")
    
    	// pprof expects this behavior when checking for addr2line
    	if len(os.Args) > 1 && os.Args[1] == "--help" {
    		printUsage(os.Stdout)
    		os.Exit(0)
    	}
    
    	flag.Usage = usage
    	flag.Parse()
    	if flag.NArg() != 1 {
    		usage()
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/amd64error.s

    	// TODO(quasilyte): improve error message (#21860).
    	VPGATHERQQ X2, (BP)(X20*2), X3  // ERROR "invalid instruction"
    	VPGATHERQQ Y2, (BP)(Y20*2), Y3  // ERROR "invalid instruction"
    	// YzrMulti4 expects exactly 4 registers referenced by REG_LIST.
    	// TODO(quasilyte): improve error message (#21860).
    	V4FMADDPS (AX), [Z0-Z4], K1, Z7  // ERROR "invalid instruction"
    	V4FMADDPS (AX), [Z0-Z0], K1, Z7  // ERROR "invalid instruction"
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 14 00:03:57 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    	m := Map(maxRune, []byte(a))
    	expect := tenRunes(unicode.MaxRune)
    	if string(m) != expect {
    		t.Errorf("growing: expected %q got %q", expect, m)
    	}
    
    	// 2. Shrink
    	minRune := func(r rune) rune { return 'a' }
    	m = Map(minRune, []byte(tenRunes(unicode.MaxRune)))
    	expect = a
    	if string(m) != expect {
    		t.Errorf("shrinking: expected %q got %q", expect, m)
    	}
    
    	// 3. Rot13
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    q.x          // (*(*q).T0).x        (*q).x is a valid field selector
    
    p.M0()       // ((*p).T0).M0()      M0 expects *T0 receiver
    p.M1()       // ((*p).T1).M1()      M1 expects T1 receiver
    p.M2()       // p.M2()              M2 expects *T2 receiver
    t.M2()       // (&t).M2()           M2 expects *T2 receiver, see section on Calls
    </pre>
    
    <p>
    but the following is invalid:
    </p>
    
    <pre>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/expr_test.go

    		result := int64(p.expr())
    		if result != test.output {
    			t.Errorf("%d: %q evaluated to %d; expected %d", i, test.input, result, test.output)
    		}
    		tok := p.next()
    		if test.atEOF && tok.ScanToken != scanner.EOF {
    			t.Errorf("%d: %q: at EOF got %s", i, test.input, tok)
    		} else if !test.atEOF && tok.ScanToken == scanner.EOF {
    			t.Errorf("%d: %q: expected not EOF but at EOF", i, test.input)
    		}
    	}
    }
    
    type badExprTest struct {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. CONTRIBUTING.md

    Otherwise, when filing an issue, make sure to answer these five questions:
    
    1. What version of Go are you using (`go version`)?
    2. What operating system and processor architecture are you using?
    3. What did you do?
    4. What did you expect to see?
    5. What did you see instead?
    
    For change proposals, see [Proposing Changes To Go](https://go.dev/s/proposal-process).
    
    ## Contributing code
    
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 29 22:00:27 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/addr2line/addr2line_test.go

    }
    
    const symName = "cmd/addr2line.TestAddr2Line"
    
    func testAddr2Line(t *testing.T, dbgExePath, addr string) {
    	funcName, srcPath, srcLineNo := runAddr2Line(t, dbgExePath, addr)
    	if symName != funcName {
    		t.Fatalf("expected function name %v; got %v", symName, funcName)
    	}
    	fi1, err := os.Stat("addr2line_test.go")
    	if err != nil {
    		t.Fatalf("Stat failed: %v", err)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 22:16:54 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  8. doc/asm.html

    a <code>_lo</code> or <code>_hi</code> suffix to the name, as in <code>arg_lo+0(FP)</code> or <code>arg_hi+4(FP)</code>.
    If a Go prototype does not name its result, the expected assembly name is <code>ret</code>.
    </p>
    
    <p>
    The <code>SP</code> pseudo-register is a virtual stack pointer
    used to refer to frame-local variables and the arguments being
    prepared for function calls.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/pseudo_test.go

    		{"DATA", "", "expect two operands for DATA"},
    		{"DATA", "0", "expect two operands for DATA"},
    		{"DATA", "(0), 1", "expect /size for DATA argument"},
    		{"DATA", "@B(SB)/4,0", "expected '(', found B"}, // Issue 23580.
    		{"DATA", "·A(SB)/4,0", "DATA value must be an immediate constant or address"},
    		{"DATA", "·B(SB)/4,$0", ""},
    		{"DATA", "·C(SB)/5,$0", "bad int size for DATA argument: 5"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  10. .github/ISSUE_TEMPLATE/01-pkgsite.yml

      - type: textarea
        id: actual-behavior
        attributes:
          label: "What did you see happen?"
        validations:
          required: true
      - type: textarea
        id: expected-behavior
        attributes:
          label: "What did you expect to see?"
        validations:
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.4K bytes
    - Viewed (0)
Back to top