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

var bigMostPositive

var bigMostNegative

func dec(i int64, exponent int) infDecAmount {}

func bigDec(i *big.Int, exponent int) infDecAmount {}

func decQuantity(i int64, exponent int, format Format) Quantity {}

func bigDecQuantity(i *big.Int, exponent int, format Format) Quantity {}

func intQuantity(i int64, exponent Scale, format Format) Quantity {}

func TestDec(t *testing.T) {}

func TestBigDec(t *testing.T) {}

// TestQuantityParseZero ensures that when a 0 quantity is passed, its string value is 0
func TestQuantityParseZero(t *testing.T) {}

// TestQuantityParseNonNumericPanic ensures that when a non-numeric string is parsed
// it panics
func TestQuantityParseNonNumericPanic(t *testing.T) {}

// TestQuantityAddZeroPreservesSuffix verifies that a suffix is preserved
// independent of the order of operations when adding a zero and non-zero val
func TestQuantityAddZeroPreservesSuffix(t *testing.T) {}

// TestQuantitySubZeroPreservesSuffix verifies that a suffix is preserved
// independent of the order of operations when subtracting a zero and non-zero val
func TestQuantitySubZeroPreservesSuffix(t *testing.T) {}

// TestQuantityCanocicalizeZero verifies that you get 0 as canonical value if internal value is 0, and not 0<suffix>
func TestQuantityCanocicalizeZero(t *testing.T) {}

func TestQuantityCmp(t *testing.T) {}

func TestParseQuantityString(t *testing.T) {}

func TestQuantityParse(t *testing.T) {}

func TestQuantityRoundUp(t *testing.T) {}

func TestQuantityCmpInt64AndDec(t *testing.T) {}

func TestQuantityNeg(t *testing.T) {}

func TestQuantityString(t *testing.T) {}

func TestQuantityParseEmit(t *testing.T) {}

var fuzzer

func TestQuantityDeepCopy(t *testing.T) {}

func TestJSON(t *testing.T) {}

func TestJSONWhitespace(t *testing.T) {}

func TestMilliNewSet(t *testing.T) {}

func TestNewSet(t *testing.T) {}

func TestNewScaledSet(t *testing.T) {}

func TestScaledValue(t *testing.T) {}

func TestUninitializedNoCrash(t *testing.T) {}

func TestDeepCopy(t *testing.T) {}

func TestSub(t *testing.T) {}

func TestNeg(t *testing.T) {}

func TestAdd(t *testing.T) {}

func TestMul(t *testing.T) {}

func TestAddSubRoundTrip(t *testing.T) {}

func TestAddSubRoundTripAcrossScales(t *testing.T) {}

func TestNegateRoundTrip(t *testing.T) {}

func TestQuantityAsApproximateFloat64(t *testing.T) {}

func TestQuantityAsFloat64Slow(t *testing.T) {}

func TestStringQuantityAsApproximateFloat64(t *testing.T) {}

func TestStringQuantityAsFloat64Slow(t *testing.T) {}

func benchmarkQuantities() []Quantity {}

func BenchmarkQuantityString(b *testing.B) {}

func BenchmarkQuantityStringPrecalc(b *testing.B) {}

func BenchmarkQuantityStringBinarySI(b *testing.B) {}

func BenchmarkQuantityMarshalJSON(b *testing.B) {}

func BenchmarkQuantityUnmarshalJSON(b *testing.B) {}

func BenchmarkParseQuantity(b *testing.B) {}

func BenchmarkCanonicalize(b *testing.B) {}

func BenchmarkQuantityRoundUp(b *testing.B) {}

func BenchmarkQuantityCopy(b *testing.B) {}

func BenchmarkQuantityAdd(b *testing.B) {}

func BenchmarkQuantityCmp(b *testing.B) {}

func BenchmarkQuantityAsApproximateFloat64(b *testing.B) {}

func BenchmarkQuantityAsFloat64Slow(b *testing.B) {}

var _

func TestQuantityValueSet(t *testing.T) {}

func ExampleQuantityValue() {}

func TestQuantityUnmarshalCBOR(t *testing.T) {}

func TestQuantityRoundtripCBOR(t *testing.T) {}