Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for tc (0.03 sec)

  1. pkg/controller/podautoscaler/replica_calculator_test.go

    	case objectPerPodMetric:
    		if tc.metric.singleObject == nil {
    			t.Fatal("Metric specified as objectMetric but metric.singleObject is nil.")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_attacher_test.go

    			}
    
    			_, ok := staged[tc.volID]
    			if ok && tc.stageUnstageSet && tc.volID != "" {
    				t.Errorf("found unexpected staged volume: %s", tc.volID)
    			} else if !ok && !tc.stageUnstageSet {
    				t.Errorf("could not find expected staged volume: %s", tc.volID)
    			}
    
    			if tc.jsonFile != "" && !tc.shouldFail {
    				dataPath := filepath.Join(dir, volDataFileName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    		},
    	}
    
    	for name, tc := range testcases {
    		// We can run in parallel because logging is per-test.
    		tc := tc
    		t.Run(name, func(t *testing.T) {
    			t.Parallel()
    			nodes := tc.nodes
    			if nodes == nil {
    				nodes = []*v1.Node{workerNode}
    			}
    			testCtx := setup(t, nodes, tc.claims, tc.classes, tc.schedulings, tc.objs)
    			testCtx.p.enabled = !tc.disable
    			initialObjects := testCtx.listAll(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  4. pkg/registry/core/pod/strategy_test.go

    		},
    	}
    
    	for _, tc := range tcs {
    		indexValues, err := tc.indexFunc(tc.pod)
    		if !reflect.DeepEqual(err, tc.expectedErr) {
    			t.Errorf("name %v, expected %v, got %v", tc.name, tc.expectedErr, err)
    		}
    		if err == nil && len(indexValues) != 1 && indexValues[0] != tc.expectedValue {
    			t.Errorf("name %v, expected %v, got %v", tc.name, tc.expectedValue, indexValues)
    		}
    
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_utils_test.go

    			new:     []string{"v1/set/bob", "v1/pod/foo"},
    			changed: false,
    		},
    	}
    	for _, tc := range testCases {
    		if ownerRefsChanged(toRefs(tc.orig), toRefs(tc.new)) != tc.changed {
    			t.Errorf("Expected change=%t but got %t for %v vs %v", tc.changed, !tc.changed, tc.orig, tc.new)
    		}
    	}
    }
    
    func TestGetParentNameAndOrdinal(t *testing.T) {
    	set := newStatefulSet(3)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  6. pkg/kubelet/nodestatus/setters_test.go

    				"Diff: %s", cmp.Diff(tc.expectNode, tc.node))
    			// check expected events
    			require.Equal(t, len(tc.expectEvents), len(events))
    			for i := range tc.expectEvents {
    				assert.Equal(t, tc.expectEvents[i], events[i])
    			}
    		})
    	}
    
    }
    
    func TestVersionInfo(t *testing.T) {
    	cases := []struct {
    		desc                string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_mounter_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		registerFakePlugin(testDriver, "endpoint", []string{"1.0.0"}, t)
    		t.Run(tc.name, func(t *testing.T) {
    			mounter, err := plug.NewMounter(
    				tc.spec(tc.fsType, tc.options),
    				&corev1.Pod{ObjectMeta: meta.ObjectMeta{UID: tc.podUID, Namespace: testns}},
    				volume.VolumeOptions{},
    			)
    			if tc.newMounterShouldFail && err != nil {
    				t.Log(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/lifecycle_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		tc := tc
    		t.Run("", func(t *testing.T) {
    			lc, err := ParseLifecycleConfig(bytes.NewReader([]byte(tc.inputConfig)))
    			if err != nil {
    				t.Fatalf("Got unexpected error: %v", err)
    			}
    			opts := ObjectOpts{
    				Name:             tc.objectName,
    				UserTags:         tc.objectTags,
    				ModTime:          tc.objectModTime,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    }
    
    func TestIndexFunc(t *testing.T) {
    	for _, tc := range indexFuncTests {
    		first := IndexFunc([]byte(tc.in), tc.f.f)
    		if first != tc.first {
    			t.Errorf("IndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, first, tc.first)
    		}
    		last := LastIndexFunc([]byte(tc.in), tc.f.f)
    		if last != tc.last {
    			t.Errorf("LastIndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, last, tc.last)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  10. pilot/pkg/model/telemetry_logging_test.go

    						},
    					},
    				},
    			},
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			got := buildOpenTelemetryAccessLogConfig(tc.logName, tc.hostname, tc.clusterName, tc.body, tc.labels)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestTelemetryAccessLogExhaustiveness(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top