Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 5,437 for expectUsed (0.16 sec)

  1. pkg/util/env/env_test.go

    func TestGetEnvAsStringOrFallback(t *testing.T) {
    	const expected = "foo"
    
    	assert := assert.New(t)
    
    	key := "FLOCKER_SET_VAR"
    	t.Setenv(key, expected)
    	assert.Equal(expected, GetEnvAsStringOrFallback(key, "~"+expected))
    
    	key = "FLOCKER_UNSET_VAR"
    	assert.Equal(expected, GetEnvAsStringOrFallback(key, expected))
    }
    
    func TestGetEnvAsIntOrFallback(t *testing.T) {
    	const expected = 1
    
    	assert := assert.New(t)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:39:46 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. src/internal/fuzz/mutators_byteslice_test.go

    		randVals []int
    		input    []byte
    		expected []byte
    	}{
    		{
    			name:     "byteSliceRemoveBytes",
    			mutator:  byteSliceRemoveBytes,
    			input:    []byte{1, 2, 3, 4},
    			expected: []byte{4},
    		},
    		{
    			name:     "byteSliceInsertRandomBytes",
    			mutator:  byteSliceInsertRandomBytes,
    			input:    make([]byte, 4, 8),
    			expected: []byte{3, 4, 5, 0, 0, 0, 0},
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 19 18:23:43 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  3. maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractVersionTest.java

                assertNotEquals(v2, v1, "expected " + v2 + " != " + v1);
            } else if (expected < 0) {
                assertEquals(-1, Integer.signum(v1.compareTo(v2)), "expected " + v1 + " < " + v2);
                assertEquals(1, Integer.signum(v2.compareTo(v1)), "expected " + v2 + " > " + v1);
                assertNotEquals(v1, v2, "expected " + v1 + " != " + v2);
                assertNotEquals(v2, v1, "expected " + v2 + " != " + v1);
            } else {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 19 19:08:55 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_ops_invalid.mlir

    module attributes {tf_saved_model.semantics} {
    
      // expected-note@+1 {{previously seen here}}
      func.func @f() attributes { tf_saved_model.exported_names = ["foo"]} {
        func.return
      }
    
      // expected-error@+1 {{duplicate exported name 'foo'}}
      func.func @g() attributes { tf_saved_model.exported_names = ["foo"]} {
        func.return
      }
    
    }
    
    // -----
    
    // expected-error@+1 {{'tf_saved_model.semantics' must be on a module op}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 19 13:38:14 UTC 2022
    - 14.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/marshal_test.go

    	if pod2.Name != pod.Name {
    		t.Errorf("expected %q, got %q", pod.Name, pod2.Name)
    	}
    
    	if pod2.Namespace != pod.Namespace {
    		t.Errorf("expected %q, got %q", pod.Namespace, pod2.Namespace)
    	}
    
    	if !reflect.DeepEqual(pod2.Labels, pod.Labels) {
    		t.Errorf("expected %v, got %v", pod.Labels, pod2.Labels)
    	}
    
    	if pod2.Spec.RestartPolicy != pod.Spec.RestartPolicy {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/fifo_list_test.go

    	verifyOrder(t, arrival, visited)
    }
    
    func verifyOrder(t *testing.T, expected, actual []*request) {
    	if len(expected) != len(actual) {
    		t.Fatalf("Expected slice length: %d, but got: %d", len(expected), len(actual))
    	}
    	for i := range expected {
    		if expected[i] != actual[i] {
    			t.Errorf("Dequeue order mismatch, expected request: (%p), but got: (%p)", expected[i], actual[i])
    		}
    	}
    }
    
    func walkAll(l fifo) []*request {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 28 08:48:40 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/client_ca_test.go

    		lhs      *dynamicCertificateContent
    		rhs      *dynamicCertificateContent
    		expected bool
    	}{
    		{
    			name:     "both nil",
    			expected: true,
    		},
    		{
    			name:     "lhs nil",
    			rhs:      &dynamicCertificateContent{},
    			expected: false,
    		},
    		{
    			name:     "rhs nil",
    			lhs:      &dynamicCertificateContent{},
    			expected: false,
    		},
    		{
    			name: "same",
    			lhs: &dynamicCertificateContent{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 17 13:37:16 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  8. pkg/apis/flowcontrol/v1beta2/conversion_test.go

    			if err := Convert_v1beta2_LimitedPriorityLevelConfiguration_To_flowcontrol_LimitedPriorityLevelConfiguration(test.in, out, nil); err != nil {
    				t.Errorf("Expected no error, but got: %v", err)
    			}
    			if !cmp.Equal(test.expected, out) {
    				t.Errorf("Expected a match, diff: %s", cmp.Diff(test.expected, out))
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 26 19:34:10 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator_test.go

    	})
    
    	if cachedFunc() {
    		t.Fatal("expected false")
    	}
    	if called != 1 {
    		t.Fatalf("expected called=1, got %d", called)
    	}
    
    	if cachedFunc() {
    		t.Fatal("expected false")
    	}
    	if called != 2 {
    		t.Fatalf("expected called=2, got %d", called)
    	}
    
    	result = true
    	if !cachedFunc() {
    		t.Fatal("expected true")
    	}
    	if called != 3 {
    		t.Fatalf("expected called=3, got %d", called)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 04 12:53:52 UTC 2020
    - 3K bytes
    - Viewed (0)
  10. pkg/apis/batch/v1/defaults_test.go

    		}
    		if *actual.Spec.Suspend != *expected.Spec.Suspend {
    			t.Errorf("%s: got different suspend than expected: %v %v", name, *actual.Spec.Suspend, *expected.Spec.Suspend)
    		}
    		if *actual.Spec.SuccessfulJobsHistoryLimit != *expected.Spec.SuccessfulJobsHistoryLimit {
    			t.Errorf("%s: got different successfulJobsHistoryLimit than expected: %v %v", name, *actual.Spec.SuccessfulJobsHistoryLimit, *expected.Spec.SuccessfulJobsHistoryLimit)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top