Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 276 for expectKind (0.14 sec)

  1. cmd/kubeadm/app/util/etcd/etcd_test.go

    			endpoints, err := getEtcdEndpointsWithRetry(client, time.Microsecond*10, time.Millisecond*100)
    			if err != nil && !rt.expectedErr {
    				t.Errorf("got error %q; was expecting no errors", err)
    				return
    			} else if err == nil && rt.expectedErr {
    				t.Error("got no error; was expecting an error")
    				return
    			} else if err != nil && rt.expectedErr {
    				return
    			}
    
    			if !reflect.DeepEqual(endpoints, rt.expectedEndpoints) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:56 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/conversion/queryparams/convert.go

    	switch reflect.TypeOf(obj).Kind() {
    	case reflect.Pointer, reflect.Interface:
    		sv = reflect.ValueOf(obj).Elem()
    	default:
    		return nil, fmt.Errorf("expecting a pointer or interface")
    	}
    	st := sv.Type()
    	if !isStructKind(st.Kind()) {
    		return nil, fmt.Errorf("expecting a pointer to a struct")
    	}
    
    	// Check all object fields
    	convertStruct(result, st, sv)
    
    	return result, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  3. pkg/api/v1/service/util.go

    		specs := service.Spec.LoadBalancerSourceRanges
    		ipnets, err = utilnet.ParseIPNets(specs...)
    
    		if err != nil {
    			return nil, fmt.Errorf("service.Spec.LoadBalancerSourceRanges: %v is not valid. Expecting a list of IP ranges. For example, 10.0.0.0/24. Error msg: %v", specs, err)
    		}
    	} else {
    		val := service.Annotations[v1.AnnotationLoadBalancerSourceRangesKey]
    		val = strings.TrimSpace(val)
    		if val == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 30 15:56:47 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. test/fixedbugs/bug267.go

    package bug267
    
    type T []int
    
    var a []bool
    
    func f1() {
    	if a[T{42}[0]] {
    	}
    	// if (a[T{42}[0]]) {}  // this compiles
    }
    
    /*
    6g bugs/bug267.go
    bugs/bug267.go:14: syntax error: unexpected {, expecting :
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 28 21:41:07 UTC 2021
    - 377 bytes
    - Viewed (0)
  5. security/pkg/pki/util/san_test.go

    		if _, err := ExtractIDsFromSAN(tc.ext); err == nil {
    			t.Errorf("%v: Expecting error to be returned but got nil", id)
    		}
    	}
    }
    
    func TestExtractIDsFromSANWithBadEncoding(t *testing.T) {
    	ext := &pkix.Extension{
    		Id:    oidSubjectAlternativeName,
    		Value: []byte("bad value"),
    	}
    
    	if _, err := ExtractIDsFromSAN(ext); err == nil {
    		t.Error("Expecting error to be returned but got nil")
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_body/test_tutorial001.py

                            "error": "Expecting property name enclosed in double quotes"
                        },
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", 1],
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body/test_tutorial001_py310.py

                            "error": "Expecting property name enclosed in double quotes"
                        },
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["body", 1],
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. cni/pkg/install/install_test.go

    				// Copy an invalid config file into tempDir
    				if err := file.AtomicCopy(filepath.Join("testdata", c.invalidConfigFilename), tempDir, c.cniConfigFilename); err != nil {
    					t.Fatal(err)
    				}
    			}
    
    			t.Log("Expecting an invalid configuration log:")
    			err := in.sleepWatchInstall(ctx, sets.String{})
    			if err != nil {
    				t.Fatalf("error should be nil due to invalid config, got: %v", err)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/configurationcache/ConfigurationCacheProblemsFixture.groovy

            }
            if (!(spec instanceof InputsSpec.IgnoreUnexpected)) {
                assert unexpectedInputs.isEmpty() : "Unexpected inputs $unexpectedInputs found in the report, expecting $expectedInputs"
            }
            assert expectedInputs.isEmpty() : "Expecting $expectedInputs in the report, found $unexpectedInputs"
        }
    
        static String formatInputForAssert(Map<String, Object> input) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  10. pkg/env/var.go

    	result, ok := os.LookupEnv(v.Name)
    	if !ok {
    		result = v.DefaultValue
    	}
    
    	b, err := strconv.ParseBool(result)
    	if err != nil {
    		log.Warnf("Invalid environment variable value `%s`, expecting true/false, defaulting to %v", result, v.DefaultValue)
    		b, _ = strconv.ParseBool(v.DefaultValue)
    	}
    
    	return b, ok
    }
    
    // Get retrieves the value of the environment variable.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top