Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 5,486 for expectHead (0.13 sec)

  1. pkg/kubelet/types/pod_update_test.go

    			}
    			assert.Equal(t, test.expected, source)
    		})
    	}
    }
    
    func TestString(t *testing.T) {
    	tests := []struct {
    		sp       SyncPodType
    		expected string
    	}{
    		{
    			sp:       SyncPodCreate,
    			expected: "create",
    		},
    		{
    			sp:       SyncPodUpdate,
    			expected: "update",
    		},
    		{
    			sp:       SyncPodSync,
    			expected: "sync",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 21 08:20:50 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/func-attr-invalid.mlir

    // RUN: tf-opt %s -split-input-file -verify-diagnostics
    
    // Tests invalid #tf_type.func attributes.
    
    // expected-error@+1 {{expected '<'}}
    func.func @main() attributes {tf._implements = #tf_type.func} {
      func.return
    }
    
    // -----
    
    // expected-error@+2 {{expected attribute value}}
    // expected-error@+1 {{expected symbol while parsing tf.func attribute}}
    func.func @main() attributes {tf._implements = #tf_type.func<>} {
      func.return
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 06 09:05:45 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/LineBufferTest.java

          chunk = Math.max(1, Math.min(chunk, input.length()));
          assertEquals(expectProcess, bufferHelper(input, chunk));
          assertEquals(expectRead, readUsingJava(input, chunk));
          assertEquals(expectRead, readUsingReader(input, chunk, true));
          assertEquals(expectRead, readUsingReader(input, chunk, false));
        }
      }
    
      private static List<String> bufferHelper(String input, int chunk) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/LineBufferTest.java

          chunk = Math.max(1, Math.min(chunk, input.length()));
          assertEquals(expectProcess, bufferHelper(input, chunk));
          assertEquals(expectRead, readUsingJava(input, chunk));
          assertEquals(expectRead, readUsingReader(input, chunk, true));
          assertEquals(expectRead, readUsingReader(input, chunk, false));
        }
      }
    
      private static List<String> bufferHelper(String input, int chunk) throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/analysis/cost_analysis.mlir

        // expected-remark@+1 {{Cost: 1}}
        %9 = "tf.Const"() {value = dense<> : tensor<0x!tf_type.string>} : () -> tensor<0x!tf_type.string>
        // expected-remark@+1 {{Cost: 1}}
        %10 = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
        // expected-remark@+1 {{Cost: 1}}
        %11 = "tf.Const"() {value = dense<-1> : tensor<i32>} : () -> tensor<i32>
        // expected-remark@+1 {{Cost: 19}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelChecker.groovy

     */
    class ToolingApiModelChecker {
    
        static <T> void checkModel(T actual, T expected, List<Object> specs) {
            assert (actual == null) == (expected == null)
            if (expected == null) {
                return
            }
    
            if (expected instanceof Collection) {
                assert actual instanceof Collection
                checkCollection(actual, expected) { actualItem, expectedItem ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/errors/errors_test.go

    			aggregate{fmt.Errorf("abc (repeated 2 times)"), fmt.Errorf("ghi")},
    		},
    	}
    
    	var expected, agg []error
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			if testCase.expected != nil {
    				expected = testCase.expected.Errors()
    				sort.Slice(expected, func(i, j int) bool { return expected[i].Error() < expected[j].Error() })
    			}
    			if testCase.mcm != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 13:16:21 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  8. pilot/pkg/util/network/ip_test.go

    			if tc.errStr != "" {
    				t.Errorf("[%s] no error seen, but expected failure: %s", tc.name, tc.errStr)
    			} else if actual != tc.expected {
    				t.Errorf("[%s] expected address %q, got %q", tc.name, tc.expected, actual)
    			}
    		}
    	}
    }
    
    func TestAllIPv6(t *testing.T) {
    	tests := []struct {
    		name     string
    		addrs    []string
    		expected bool
    	}{
    		{
    			name:     "ipv4 only",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 08 16:24:15 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

          for (RoundingMode mode : ALL_SAFE_ROUNDING_MODES) {
            BigDecimal expected = new BigDecimal(d).setScale(0, mode);
            boolean isInBounds =
                expected.compareTo(MAX_INT_AS_BIG_DECIMAL) <= 0
                    & expected.compareTo(MIN_INT_AS_BIG_DECIMAL) >= 0;
    
            try {
              assertEquals(expected.intValue(), DoubleMath.roundToInt(d, mode));
              assertTrue(isInBounds);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. pkg/config/gateway/gateway_test.go

    					Number:   80,
    					Protocol: string(protocol.TCP),
    					Name:     "tcp",
    				},
    			},
    			expected: false,
    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := IsTLSServer(tc.server)
    			if actual != tc.expected {
    				t.Errorf("IsTLSServer(%s) => %t, want %t",
    					tc.server, actual, tc.expected)
    			}
    		})
    	}
    }
    
    func TestIsHTTPServer(t *testing.T) {
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 26 05:53:25 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top