Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Num (0.15 sec)

  1. internal/grid/grid_test.go

    			n := 0
    			for i := range in {
    				if n > payloads {
    					panic("too many requests")
    				}
    
    				// t.Log("Got request:", *i)
    				out <- &testResponse{
    					OrgNum:    i.Num + pp.Num,
    					OrgString: pp.String + i.String,
    					Embedded:  *i,
    				}
    				n++
    			}
    			return nil
    		}))
    	}
    	register(local)
    	register(remote)
    
    	// local to remote
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  2. internal/grid/benchmark_test.go

    			return append(GetByteBuffer()[:0], payload...), nil
    		}))
    		errFatal(rpc.Register(remote, func(req *testRequest) (resp *testResponse, err *RemoteErr) {
    			return &testResponse{
    				OrgNum:    req.Num,
    				OrgString: req.String,
    				Embedded:  *req,
    			}, nil
    		}))
    		errFatal(err)
    	}
    	const payloadSize = 512
    	rng := rand.New(rand.NewSource(time.Now().UnixNano()))
    	payload := make([]byte, payloadSize)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/parse.go

    		p.errorf("expected register; found %s", name)
    		return 0, false
    	}
    	p.get('(')
    	tok := p.get(scanner.Int)
    	num, err := strconv.ParseInt(tok.String(), 10, 16)
    	p.get(')')
    	if err != nil {
    		p.errorf("parsing register list: %s", err)
    		return 0, false
    	}
    	r, ok := p.arch.RegisterNumber(name, int16(num))
    	if !ok {
    		p.errorf("illegal register %s(%d)", name, r)
    		return 0, false
    	}
    	return r, true
    }
    
    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)
  4. cmd/object_api_suite_test.go

    	parts := make(map[int]string)
    	metadata := make(map[string]string)
    	for i := 1; i <= 10; i++ {
    		randomPerm := rand.Perm(10)
    		randomString := ""
    		for _, num := range randomPerm {
    			randomString += strconv.Itoa(num)
    		}
    
    		expectedETaghex := getMD5Hash([]byte(randomString))
    
    		metadata["md5"] = expectedETaghex
    		var calcPartInfo PartInfo
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  5. tests/scanner_valuer_test.go

    	}
    
    	// prepend asterisks
    	return append([]byte("***"), data...), nil
    }
    
    type Num int64
    
    func (i *Num) Scan(src interface{}) error {
    	switch s := src.(type) {
    	case []byte:
    		n, _ := strconv.Atoi(string(s))
    		*i = Num(n)
    	case int64:
    		*i = Num(s)
    	default:
    		return errors.New("Cannot scan NamedInt from " + reflect.ValueOf(src).String())
    	}
    	return nil
    }
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Jun 07 07:02:07 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/arch/arm64.go

    }
    
    // ARM64RegisterExtension constructs an ARM64 register with extension or arrangement.
    func ARM64RegisterExtension(a *obj.Addr, ext string, reg, num int16, isAmount, isIndex bool) error {
    	Rnum := (reg & 31) + int16(num<<5)
    	if isAmount {
    		if num < 0 || num > 7 {
    			return errors.New("index shift amount is out of range")
    		}
    	}
    	if reg <= arm64.REG_R31 && reg >= arm64.REG_R0 {
    		if !isAmount {
    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)
  7. schema/field.go

    			}
    		}
    	}
    
    	if num, ok := field.TagSettings["AUTOINCREMENTINCREMENT"]; ok {
    		field.AutoIncrementIncrement, _ = strconv.ParseInt(num, 10, 64)
    	}
    
    	if v, ok := field.TagSettings["DEFAULT"]; ok {
    		field.HasDefaultValue = true
    		field.DefaultValue = v
    	}
    
    	if num, ok := field.TagSettings["SIZE"]; ok {
    		if field.Size, err = strconv.Atoi(num); err != nil {
    			field.Size = -1
    		}
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  8. tests/associations_test.go

    	if DB.First(&CouponProduct{}, "coupon_id = ? AND product_id = ?", coupon.ID, "full-save-association-product1").Error != nil {
    		t.Errorf("Failed to query saved association")
    	}
    
    	orders := []Order{{Num: "order1", Coupon: coupon}, {Num: "order2", Coupon: coupon}}
    	if err := DB.Create(&orders).Error; err != nil {
    		t.Errorf("failed to create orders, got %v", err)
    	}
    
    	coupon2 := Coupon{
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    	#line 1 "not-type"
    	void __cgo_f_1_2(void) { foo *__cgo_undefined__2; }
    	#line 1 "not-int-const"
    	void __cgo_f_1_3(void) { enum { __cgo_undefined__3 = (foo)*1 }; }
    	#line 1 "not-num-const"
    	void __cgo_f_1_4(void) { static const double __cgo_undefined__4 = (foo); }
    	#line 1 "not-str-lit"
    	void __cgo_f_1_5(void) { static const char __cgo_undefined__5[] = (foo); }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
Back to top