Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for expectedArgs (0.31 sec)

  1. pkg/apis/networking/validation/validation_test.go

    			if len(errs) != len(testCase.expectedErrs) {
    				t.Fatalf("Expected %d errors, got %d (%+v)", len(testCase.expectedErrs), len(errs), errs)
    			}
    
    			for i, err := range errs {
    				if err.Error() != testCase.expectedErrs[i].Error() {
    					t.Fatalf("Expected error: %v, got %v", testCase.expectedErrs[i], err)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 73.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go

    		if len(errs) != len(tc.ExpectedErrs) {
    			t.Logf("%s: Expected: %#v", k, tc.ExpectedErrs)
    			for _, err := range errs {
    				errList = append(errList, err.Error())
    			}
    			t.Logf("%s: Got: %#v", k, errList)
    			t.Errorf("%s: expected %d errors, got %d", k, len(tc.ExpectedErrs), len(errs))
    			continue
    		}
    		for i := range errList {
    			if errList[i] != tc.ExpectedErrs[i] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 07 03:12:31 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt

      private val failures = mutableListOf<String>()
    
      override fun select(uri: URI): List<Proxy> {
        requestedUris.add(uri)
        return proxies
      }
    
      fun assertRequests(vararg expectedUris: URI?) {
        assertThat(requestedUris).containsExactly(*expectedUris)
        requestedUris.clear()
      }
    
      override fun connectFailed(
        uri: URI,
        sa: SocketAddress,
        ioe: IOException,
      ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/RecordingExecutor.kt

        if (shutdown) throw RejectedExecutionException()
        calls.add(command as RealCall.AsyncCall)
      }
    
      fun assertJobs(vararg expectedUrls: String) {
        val actualUrls = calls.map { it.request.url.toString() }
        assertThat(actualUrls).containsExactly(*expectedUrls)
      }
    
      fun finishJob(url: String) {
        val i = calls.iterator()
        while (i.hasNext()) {
          val call = i.next()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/python/op_reg_gen.py

        attrs = all_dec_args.get('attrs', [])
        expected_args = [arg.split(':')[0] for arg in inputs + attrs]
        all_func_args = self.visit(node.args)
    
        if len(expected_args) != len(all_func_args):
          raise KeyError(
              'Composition arguments for {} do not match the registration. {} vs {}'
              .format(op_name, expected_args, all_func_args))
    
        cxx_reg_code = ['\nREGISTER_OP("{}")'.format(op_name)]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go

    	}
    
    	testCases := []struct {
    		jsonData            string
    		obj                 interface{}
    		returnUnknownFields bool
    		expectedErrs        []string
    	}{
    		{
    			jsonData:            simplesData,
    			obj:                 &C{},
    			returnUnknownFields: true,
    			expectedErrs:        simplesErrs,
    		},
    		{
    			jsonData:            simplesData,
    			obj:                 &C{},
    			returnUnknownFields: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  7. pkg/controller/replicaset/replica_set_test.go

    		name        string
    		rss         []*apps.ReplicaSet
    		rs          *apps.ReplicaSet
    		expectedRSs []*apps.ReplicaSet
    	}{
    		{
    			name:        "expect to get back a ReplicaSet that is pending deletion",
    			rss:         []*apps.ReplicaSet{pendingDeletionRS, unrelatedRS},
    			rs:          pendingDeletionRS,
    			expectedRSs: []*apps.ReplicaSet{pendingDeletionRS},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  8. pkg/apis/core/validation/validation_test.go

    		source       *core.FlexVolumeSource
    		expectedErrs map[string]string
    	}{
    		"valid": {
    			source:       &core.FlexVolumeSource{Driver: "foo"},
    			expectedErrs: map[string]string{},
    		},
    		"valid with options": {
    			source:       &core.FlexVolumeSource{Driver: "foo", Options: map[string]string{"foo": "bar"}},
    			expectedErrs: map[string]string{},
    		},
    		"no driver": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
Back to top