From bad417b91e448b9d5e455c9e3317c0c7db92efcb Mon Sep 17 00:00:00 2001 From: jianglingxia Date: Fri, 13 Oct 2017 11:03:33 +0800 Subject: [PATCH] unused para in quantity_test --- .../k8s.io/apimachinery/pkg/api/resource/quantity_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go b/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go index e61a2547d45..74f091a3800 100644 --- a/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go +++ b/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go @@ -29,8 +29,6 @@ import ( inf "gopkg.in/inf.v0" ) -var useInfDec bool - func amount(i int64, exponent int) infDecAmount { // See the below test-- scale is the negative of an exponent. return infDecAmount{inf.NewDec(i, inf.Scale(-exponent))} @@ -79,7 +77,7 @@ func TestQuantityParseZero(t *testing.T) { } } -// TestQuantityParseNonNumericError ensures that when a non-numeric string is parsed +// TestQuantityParseNonNumericPanic ensures that when a non-numeric string is parsed // it panics func TestQuantityParseNonNumericPanic(t *testing.T) { defer func() { @@ -140,7 +138,7 @@ func TestQuantitySubZeroPreservesSuffix(t *testing.T) { } } -// Verifies that you get 0 as canonical value if internal value is 0, and not 0 +// TestQuantityCanocicalizeZero verifies that you get 0 as canonical value if internal value is 0, and not 0 func TestQuantityCanocicalizeZero(t *testing.T) { val := MustParse("1000m") val.i.Sub(int64Amount{value: 1})