Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Expect (0.15 sec)

  1. src/bufio/scan_test.go

    		s := NewScanner(buf)
    		s.Split(ScanRunes)
    		var i, runeCount int
    		var expect rune
    		// Use a string range loop to validate the sequence of runes.
    		for i, expect = range test {
    			if !s.Scan() {
    				break
    			}
    			runeCount++
    			got, _ := utf8.DecodeRune(s.Bytes())
    			if got != expect {
    				t.Errorf("#%d: %d: expected %q got %q", n, i, expect, got)
    			}
    		}
    		if s.Scan() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    	p.expect(expected, expected.String())
    	return p.next()
    }
    
    // expectOperandEnd verifies that the parsing state is properly at the end of an operand.
    func (p *Parser) expectOperandEnd() {
    	p.expect(scanner.EOF, "end of operand")
    }
    
    // expect verifies that the next item has the expected type. It does not consume it.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/asm.go

    func (p *Parser) asmData(operands [][]lex.Token) {
    	if len(operands) != 2 {
    		p.errorf("expect two operands for DATA")
    		return
    	}
    
    	// Operand 0 has the general form foo<>+0x04(SB)/4.
    	op := operands[0]
    	n := len(op)
    	if n < 3 || op[n-2].ScanToken != '/' || op[n-1].ScanToken != scanner.Int {
    		p.errorf("expect /size for DATA argument")
    		return
    	}
    	szop := op[n-1].String()
    	sz, err := strconv.Atoi(szop)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/arch/arm64.go

    // ARM64RegisterArrangement constructs an ARM64 vector register arrangement.
    func ARM64RegisterArrangement(reg int16, name, arng string) (int64, error) {
    	var curQ, curSize uint16
    	if name[0] != 'V' {
    		return 0, errors.New("expect V0 through V31; found: " + name)
    	}
    	if reg < 0 {
    		return 0, errors.New("invalid register number: " + name)
    	}
    	switch arng {
    	case "B8":
    		curSize = 0
    		curQ = 0
    	case "B16":
    		curSize = 0
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 29 09:04:58 GMT 2022
    - 10.4K bytes
    - Viewed (0)
  5. misc/go_android_exec/main.go

    		deviceCwd = path.Join(deviceGoroot, "src", importPath)
    	} else {
    		deviceCwd = path.Join(deviceGopath, "src", importPath)
    		if modDir != "" {
    			// In module mode, the user may reasonably expect the entire module
    			// to be present. Copy it over.
    			deviceModDir := path.Join(deviceGopath, "src", modPath)
    			if err := adb("exec-out", "mkdir", "-p", path.Dir(deviceModDir)); err != nil {
    				return 0, err
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
Back to top