- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 4,385 for expected_ (0.12 sec)
-
pkg/env/var_test.go
} v = ev.Get() if v != 123.0 { t.Errorf("Expected 123.0, got %v", v) } _ = os.Setenv(testVar, "789") ev = RegisterFloatVar(testVar, 123.0, "") v, present = ev.Lookup() if v != 789 { t.Errorf("Expected 789.0, got %v", v) } if !present { t.Errorf("Expected present") } v = ev.Get() if v != 789 { t.Errorf("Expected 789.0, got %v", v) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 8.1K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
UncheckedExecutionException expected = assertThrows( UncheckedExecutionException.class, () -> getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class)); assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION); } public void testGetCheckedUntimed_ExecutionExceptionError() throws TwoArgConstructorException { ExecutionError expected = assertThrows(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 16.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
UncheckedExecutionException expected = assertThrows( UncheckedExecutionException.class, () -> getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class)); assertThat(expected).hasCauseThat().isEqualTo(UNCHECKED_EXCEPTION); } public void testGetCheckedUntimed_ExecutionExceptionError() throws TwoArgConstructorException { ExecutionError expected = assertThrows(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 16.4K bytes - Viewed (0) -
pkg/kubelet/cm/helpers_linux_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.8K bytes - Viewed (0)