Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for Positive (0.14 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    			positive, _, num, denom, suffix, err := parseQuantityString(item.input)
    			if err != nil {
    				t.Errorf("%v: unexpected error: %v", item.input, err)
    				continue
    			}
    			if got.Sign() >= 0 && !positive || got.Sign() < 0 && positive {
    				t.Errorf("%v: positive was incorrect: %t", item.input, positive)
    				continue
    			}
    			var value string
    			if !positive {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/time/time.go

    //
    // The presentation computations - year, month, minute, and so on - all
    // rely heavily on division and modulus by positive constants. For
    // calendrical calculations we want these divisions to round down, even
    // for negative values, so that the remainder is always positive, but
    // Go's division (like most hardware division instructions) rounds to
    // zero. We can still do those computations and then adjust the result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    }
    
    func TestMul(t *testing.T) {
    	if err := quick.Check(checkMul, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    var mulRangesZ = []struct {
    	a, b int64
    	prod string
    }{
    	// entirely positive ranges are covered by mulRangesN
    	{-1, 1, "0"},
    	{-2, -1, "2"},
    	{-3, -2, "6"},
    	{-3, -1, "-6"},
    	{1, 3, "6"},
    	{-10, -10, "-10"},
    	{0, -1, "1"},                      // empty range
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  4. pkg/apis/autoscaling/validation/validation_test.go

    							Name: "somemetric",
    						},
    						Target: autoscaling.MetricTarget{
    							Type: autoscaling.ValueMetricType,
    						},
    					},
    				}},
    			},
    		},
    		msg: "must specify a positive target averageValue",
    	}, {
    		horizontalPodAutoscaler: autoscaling.HorizontalPodAutoscaler{
    			ObjectMeta: metav1.ObjectMeta{Name: "myautoscaler", Namespace: metav1.NamespaceDefault},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  5. src/time/time_test.go

    	loc, err := LoadLocation("Etc/GMT+1")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// The tzdata name Etc/GMT+1 uses "east is negative",
    	// but Go and most other systems use "east is positive".
    	// So GMT+1 corresponds to -3600 in the Go zone, not +3600.
    	name, offset := Now().In(loc).Zone()
    	// The zone abbreviation is "-01" since tzdata-2016g, and "GMT+1"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  6. src/crypto/x509/x509.go

    	// RFC 5280 Section 4.1.2.2: serial number must positive
    	//
    	// We _should_ also restrict serials to <= 20 octets, but it turns out a lot of people
    	// get this wrong, in part because the encoding can itself alter the length of the
    	// serial. For now we accept these non-conformant serials.
    	if template.SerialNumber.Sign() == -1 {
    		return nil, errors.New("x509: serial number must be positive")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    		a = &Friend{Name: a}
    	}
    
    	return a, isCast
    }
    
    // sourceName parses:
    //
    //	<source-name> ::= <(positive length) number> <identifier>
    //	identifier ::= <(unqualified source code identifier)>
    func (st *state) sourceName() AST {
    	val := st.number()
    	if val <= 0 {
    		st.fail("expected positive number")
    	}
    	if len(st.str) < val {
    		st.fail("not enough characters for identifier")
    	}
    	id := st.str[:val]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        quantized_input = rewriter.create<MulOp>(op.getLoc(), input_ty,
                                                 quantized_input, float_to_quant);
    
        // Round the quantized input always to the positive direction.
        auto half_val = rewriter.create<ConstOp>(
            op.getLoc(),
            DenseElementsAttr::get(scalar_ty, ConvertToAPFloat(0.5, element_ty)));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  9. src/runtime/mgcmark.go

    					scanblock(uintptr(unsafe.Pointer(&spw.handle)), goarch.PtrSize, &oneptrmask[0], gcw, nil)
    				}
    			}
    			unlock(&s.speciallock)
    		}
    	}
    }
    
    // gcAssistAlloc performs GC work to make gp's assist debt positive.
    // gp must be the calling user goroutine.
    //
    // This must be called with preemption enabled.
    func gcAssistAlloc(gp *g) {
    	// Don't assist in non-preemptible contexts. These are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  10. cmd/kube-controller-manager/app/options/options_test.go

    	if err != nil {
    		t.Errorf("expected no error, error found %+v", err)
    	}
    
    	opts.EndpointSliceController.MaxEndpointsPerSlice = 1001 // max endpoints per slice should be a positive integer <= 1000
    
    	if err := opts.Validate([]string{"*"}, []string{""}, nil); err == nil {
    		t.Error("expected error, no error found")
    	}
    }
    
    func TestControllerManagerAliases(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top