Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for testCases (0.37 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		} else if simpleStorage.actualNamespace != testCase.namespace {
    			t.Errorf("%d: %q unexpected resource namespace: %s", i, testCase.url, simpleStorage.actualNamespace)
    		}
    		if simpleStorage.requestedLabelSelector == nil || simpleStorage.requestedLabelSelector.String() != testCase.label {
    			t.Errorf("%d: unexpected label selector: expected=%v got=%v", i, testCase.label, simpleStorage.requestedLabelSelector)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_node_status_test.go

    	}
    	memoryPressureCondition := v1.NodeCondition{
    		Type:               v1.NodeMemoryPressure,
    		Status:             v1.ConditionFalse,
    		LastHeartbeatTime:  fakeNow,
    		LastTransitionTime: fakeNow,
    	}
    	testcases := []struct {
    		name           string
    		originalStatus *v1.NodeStatus
    		status         *v1.NodeStatus
    		expectChange   bool
    	}{
    		{
    			name:           "Node status does not change with nil status.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    		Embed
    		x, X int
    	}
    	type S4 struct {
    		*Embed
    		x, X int
    	}
    
    	type testCase struct {
    		// -1 means Addr().Elem() of current value
    		index  []int
    		canSet bool
    	}
    	tests := []struct {
    		val   Value
    		cases []testCase
    	}{{
    		val: ValueOf(&S1{}),
    		cases: []testCase{
    			{[]int{0}, false},
    			{[]int{0, -1}, false},
    			{[]int{0, 0}, false},
    			{[]int{0, 0, -1}, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_test.go

    func TestValidateContainerLogStatus(t *testing.T) {
    	testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */)
    	defer testKubelet.Cleanup()
    	kubelet := testKubelet.kubelet
    	containerName := "x"
    	testCases := []struct {
    		statuses []v1.ContainerStatus
    		success  bool // whether getting logs for the container should succeed.
    		pSuccess bool // whether getting logs for the previous container should succeed.
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  5. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    	}
    }
    
    func TestMonitorNodeHealthUpdateNodeAndPodStatusWithLease(t *testing.T) {
    	nodeCreationTime := metav1.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC)
    	fakeNow := metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC)
    	testcases := []struct {
    		description             string
    		fakeNodeHandler         *testutil.FakeNodeHandler
    		lease                   *coordv1.Lease
    		timeToPass              time.Duration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  6. src/net/http/transport_test.go

    }
    
    func TestTransportProxy(t *testing.T) {
    	defer afterTest(t)
    	testCases := []struct{ siteMode, proxyMode testMode }{
    		{http1Mode, http1Mode},
    		{http1Mode, https1Mode},
    		{https1Mode, http1Mode},
    		{https1Mode, https1Mode},
    	}
    	for _, testCase := range testCases {
    		siteMode := testCase.siteMode
    		proxyMode := testCase.proxyMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  7. pkg/controller/daemon/daemon_controller_test.go

    		}
    	}
    }
    
    func TestSimpleDaemonSetUpdatesStatusError(t *testing.T) {
    	var (
    		syncErr   = fmt.Errorf("sync error")
    		statusErr = fmt.Errorf("status error")
    	)
    
    	testCases := []struct {
    		desc string
    
    		hasSyncErr   bool
    		hasStatusErr bool
    
    		expectedErr error
    	}{
    		{
    			desc:         "sync error",
    			hasSyncErr:   true,
    			hasStatusErr: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  8. pkg/printers/internalversion/printers_test.go

    	}}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			rows, err := printIngressClass(testCase.ingressClass, printers.GenerateOptions{})
    			if err != nil {
    				t.Fatalf("Error generating table rows for Ingress: %#v", err)
    			}
    			for i := range rows {
    				rows[i].Object.Object = nil
    			}
    			if !reflect.DeepEqual(testCase.expected, rows) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  9. pkg/controller/podautoscaler/horizontal_test.go

    func TestStoreScaleEvents(t *testing.T) {
    	type TestCase struct {
    		name                   string
    		key                    string
    		replicaChange          int32
    		prevScaleEvents        []timestampedScaleEvent
    		newScaleEvents         []timestampedScaleEvent
    		scalingRules           *autoscalingv2.HPAScalingRules
    		expectedReplicasChange int32
    	}
    	tests := []TestCase{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

    import java.util.logging.Logger;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit tests for {@link Futures}.
     *
     * @author Nishant Thakkar
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible(emulated = true)
    public class FuturesTest extends TestCase {
      private static final Logger aggregateFutureLogger =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
Back to top