Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for expectPath (0.13 sec)

  1. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        equivalenceMock.expectDistinct(group2Item2, group1Item2);
        equivalenceMock.expectEquivalent(group2Item2, group2Item1);
    
        equivalenceMock.expectHash(group1Item1, 1);
        equivalenceMock.expectHash(group1Item2, 1);
        equivalenceMock.expectHash(group2Item1, 2);
        equivalenceMock.expectHash(group2Item2, 2);
    
        equivalenceMock.replay();
    
        tester
            .addEquivalenceGroup(group1Item1, group1Item2)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go

    		})
    	}
    }
    
    func checkFTR(t *testing.T, ftr *fsTestingRecord) {
    	for expectMatch, digests1 := range ftr.digests {
    		if testDebugLogs {
    			t.Logf("%s.digests[%v] = %#+v", ftr.fs.Name, expectMatch, digests1)
    		}
    		for _, digests2 := range digests1 {
    			for _, digest := range digests2 {
    				actualMatch := matchesFlowSchema(digest, ftr.fs)
    				if expectMatch != actualMatch {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview_test.go

    	testcases := []struct {
    		name     string
    		uid      types.UID
    		mutating bool
    		review   runtime.Object
    
    		expectAuditAnnotations map[string]string
    		expectAllowed          bool
    		expectPatch            []byte
    		expectPatchType        admissionv1.PatchType
    		expectResult           *metav1.Status
    		expectErr              string
    	}{
    		// Allowed validating
    		{
    			name: "v1beta1 allowed validating",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  4. pkg/apis/core/taint_test.go

    		taint        *Taint
    		taintToMatch Taint
    		expectMatch  bool
    	}{
    		{
    			description: "two taints with the same key,value,effect should match",
    			taint: &Taint{
    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectNoSchedule,
    			},
    			taintToMatch: Taint{
    				Key:    "foo",
    				Value:  "bar",
    				Effect: TaintEffectNoSchedule,
    			},
    			expectMatch: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 16 13:06:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  5. pkg/auth/authorizer/abac/abac_test.go

    		User        user.DefaultInfo
    		Policy      runtime.Object
    		ExpectMatch bool
    	}{
    		"v0 empty policy does not match unauthed user": {
    			User: user.DefaultInfo{Name: "system:anonymous", Groups: []string{"system:unauthenticated"}},
    			Policy: &v0.Policy{
    				User:  "",
    				Group: "",
    			},
    			ExpectMatch: false,
    		},
    		"v0 * user policy does not match unauthed user": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 40K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/fields/selector_test.go

    	if !Everything().Empty() {
    		t.Errorf("Everything was not empty")
    	}
    }
    
    func TestSelectorMatches(t *testing.T) {
    	expectMatch(t, "", Set{"x": "y"})
    	expectMatch(t, "x=y", Set{"x": "y"})
    	expectMatch(t, "x=y,z=w", Set{"x": "y", "z": "w"})
    	expectMatch(t, "x!=y,z!=w", Set{"x": "z", "z": "a"})
    	expectMatch(t, "notin=in", Set{"notin": "in"}) // in and notin in exactMatch
    	expectNoMatch(t, "x=y", Set{"x": "z"})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 27 08:00:38 UTC 2017
    - 11.2K bytes
    - Viewed (0)
  7. pkg/registry/core/pod/strategy_test.go

    		fieldSelector fields.Selector
    		expectMatch   bool
    	}{
    		{
    			in: &api.Pod{
    				Spec: api.PodSpec{NodeName: "nodeA"},
    			},
    			fieldSelector: fields.ParseSelectorOrDie("spec.nodeName=nodeA"),
    			expectMatch:   true,
    		},
    		{
    			in: &api.Pod{
    				Spec: api.PodSpec{NodeName: "nodeB"},
    			},
    			fieldSelector: fields.ParseSelectorOrDie("spec.nodeName=nodeA"),
    			expectMatch:   false,
    		},
    		{
    			in: &api.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    }
    
    func TestSelectorMatches(t *testing.T) {
    	expectMatch(t, "", Set{"x": "y"})
    	expectMatch(t, "x=y", Set{"x": "y"})
    	expectMatch(t, "x=y,z=w", Set{"x": "y", "z": "w"})
    	expectMatch(t, "x!=y,z!=w", Set{"x": "z", "z": "a"})
    	expectMatch(t, "notin=in", Set{"notin": "in"}) // in and notin in exactMatch
    	expectMatch(t, "x", Set{"x": "z"})
    	expectMatch(t, "!x", Set{"y": "z"})
    	expectMatch(t, "x>1", Set{"x": "2"})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/errors/errors_test.go

    			err:          aggregate{errors.New("forbidden"), alwaysMatchingError{}},
    			matchAgainst: errors.New("unauthorized"),
    			expectMatch:  true,
    		},
    		{
    			name:         "match via equality",
    			err:          aggregate{errors.New("err"), someError{}},
    			matchAgainst: someError{},
    			expectMatch:  true,
    		},
    		{
    			name:         "match via nested aggregate",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 13:16:21 UTC 2022
    - 12.7K bytes
    - Viewed (0)
Back to top