Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testSubtract (0.18 sec)

  1. src/cmd/covdata/tool_test.go

    		t.Parallel()
    		testPkgList(t, s)
    	})
    	t.Run("Textfmt", func(t *testing.T) {
    		t.Parallel()
    		testTextfmt(t, s)
    	})
    	t.Run("Subtract", func(t *testing.T) {
    		t.Parallel()
    		testSubtract(t, s)
    	})
    	t.Run("Intersect", func(t *testing.T) {
    		t.Parallel()
    		testIntersect(t, s, s.outdirs[0], s.outdirs[1], "set")
    		testIntersect(t, s, s.outdirs[2], s.outdirs[3], "atomic")
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/quota/v1/resources_test.go

    		sum := Add(testCase.a, testCase.b)
    		if result := Equals(testCase.expected, sum); !result {
    			t.Errorf("%s expected: %v, actual: %v", testName, testCase.expected, sum)
    		}
    	}
    }
    
    func TestSubtract(t *testing.T) {
    	testCases := map[string]struct {
    		a        corev1.ResourceList
    		b        corev1.ResourceList
    		expected corev1.ResourceList
    	}{
    		"noKeys": {
    			a:        corev1.ResourceList{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 01:57:38 UTC 2021
    - 15.6K bytes
    - Viewed (0)
Back to top