- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for badvals (0.14 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/validation/validation_test.go
t.Errorf("expected true for '%s': %v", val, msgs) } } badValues := []string{ "", "A", "ABC", "aBc", "A1", "A-1", "1-A", "-", "a-", "-a", "1-", "-1", "_", "a_", "_a", "a_b", "1_", "_1", "1_2", ".", "a.", ".a", "a.b", "1.", ".1", "1.2", " ", "a ", " a", "a b", "1 ", " 1", "1 2", strings.Repeat("a", 64), } for _, val := range badValues { if msgs := IsDNS1123Label(val); len(msgs) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 04:51:54 UTC 2024 - 22.3K bytes - Viewed (0) -
src/cmd/fix/cftype.go
typeof, _ := typecheck(&TypeConfig{}, f) changed := false // step 1: Find all the nils with the offending types. // Compute their replacement. badNils := map[any]ast.Expr{} walk(f, func(n any) { if i, ok := n.(*ast.Ident); ok && i.Name == "nil" && badType(typeof[n]) { badNils[n] = &ast.BasicLit{ValuePos: i.NamePos, Kind: token.INT, Value: "0"} } }) // step 2: find all uses of the bad nils, replace them with 0.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:25:49 UTC 2023 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization_test.cc
func.func @main() -> tensor<1xi32> { %0 = "tf.BadValue"() {value = dense<1000> : tensor<1xi32>} : () -> tensor<1xi32> func.return %0 : tensor<1xi32> } })"; CellReader<int64_t> error(kFailedLegalizationStreamz); CreateModule(kMlirModuleStr); auto result = Run(); EXPECT_TRUE(result.failed()); EXPECT_EQ(error.Delta("tf.BadValue"), 1); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 7.5K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceslice_test.go
}, } } func TestValidateResourceSlice(t *testing.T) { goodName := "foo" badName := "!@#$%^" driverName := "test.example.com" now := metav1.Now() badValue := "spaces not allowed" scenarios := map[string]struct { slice *resource.ResourceSlice wantFailures field.ErrorList }{ "good": { slice: testResourceSlice(goodName, goodName, driverName), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 14 17:07:36 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go
goodName := "foo" badName := "!@#$%^" goodNS := "ns" goodClaimSpec := resource.ResourceClaimSpec{ ResourceClassName: goodName, AllocationMode: validMode, } now := metav1.Now() badValue := "spaces not allowed" badAPIGroup := "example.com/v1" goodAPIGroup := "example.com" scenarios := map[string]struct { template *resource.ResourceClaimTemplate wantFailures field.ErrorList }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 12.3K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclaimparameters_test.go
}, DriverRequests: requests, } } var goodRequests []resource.DriverRequests func TestValidateResourceClaimParameters(t *testing.T) { goodName := "foo" badName := "!@#$%^" badValue := "spaces not allowed" now := metav1.Now() scenarios := map[string]struct { parameters *resource.ResourceClaimParameters wantFailures field.ErrorList }{ "good": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:21:16 UTC 2024 - 11.4K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclassparameters_test.go
Namespace: namespace, }, Filters: filters, } } var goodFilters []resource.ResourceFilter func TestValidateResourceClassParameters(t *testing.T) { goodName := "foo" badName := "!@#$%^" badValue := "spaces not allowed" now := metav1.Now() scenarios := map[string]struct { parameters *resource.ResourceClassParameters wantFailures field.ErrorList }{ "good": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:21:16 UTC 2024 - 11.8K bytes - Viewed (0) -
pkg/apis/resource/validation/validation_resourceclass_test.go
goodName := "foo" now := metav1.Now() goodParameters := resource.ResourceClassParametersReference{ Name: "valid", Namespace: "valid", Kind: "foo", } badName := "!@#$%^" badValue := "spaces not allowed" badAPIGroup := "example.com/v1" goodAPIGroup := "example.com" scenarios := map[string]struct { class *resource.ResourceClass wantFailures field.ErrorList }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/env_write.txt
! go env -w GOOS stderr 'arguments must be KEY=VALUE: invalid argument: GOOS' # go env -w rejects invalid GO111MODULE values, as otherwise cmd/go would break ! go env -w GO111MODULE=badvalue stderr 'invalid GO111MODULE value "badvalue"' # go env -w rejects invalid GOPATH values ! go env -w GOPATH=~/go stderr 'GOPATH entry cannot start with shell metacharacter' ! go env -w GOPATH=./go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 18:42:31 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/merge.go
return err } baseVals := make([]int64, len(p.SampleType)) for _, s := range pb.Sample { for i, v := range s.Value { baseVals[i] += v } } srcVals := make([]int64, len(p.SampleType)) for _, s := range p.Sample { for i, v := range s.Value { srcVals[i] += v } } normScale := make([]float64, len(baseVals)) for i := range baseVals {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 17K bytes - Viewed (0)