Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 3,911 for expected_ (0.4 sec)

  1. pkg/proxy/util/linebuffer_test.go

    		name     string
    		expected int
    	}{
    		{
    			name:     "write no line",
    			expected: 0,
    		},
    		{
    			name:     "write one line",
    			expected: 1,
    		},
    		{
    			name:     "write 100 lines",
    			expected: 100,
    		},
    		{
    			name:     "write 1000 lines",
    			expected: 1000,
    		},
    		{
    			name:     "write 10000 lines",
    			expected: 10000,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 12:38:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. pkg/kubelet/cm/helpers_linux_test.go

    		}
    		if !reflect.DeepEqual(actual.CPUQuota, testCase.expected.CPUQuota) {
    			t.Errorf("unexpected result, test: %v, cpu quota not as expected. Expected: %v, Actual:%v", testName, *testCase.expected.CPUQuota, *actual.CPUQuota)
    		}
    		if !reflect.DeepEqual(actual.CPUShares, testCase.expected.CPUShares) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top