Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for nonExisting (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/mutation/optional_test.go

    	}{
    		{
    			// question mark syntax still requires the field to exist in object construction
    			name: "construct non-existing field, compile error",
    			expression: `Object{
    				?nonExisting: optional.none()
    			}`,
    			expectedCompileError: `undefined field 'nonExisting'`,
    		},
    		{
    			// The root cause of the behavior above is that, has on an object (or Message in the Language Def),
    			// still require the field to be declared in the schema.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 21:52:39 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/mutation/mock_test.go

    // except treating "nonExisting" field as non-existing.
    // This is used for optional tests.
    type mockTypeRefForOptional struct {
    	common.TypeRef
    }
    
    // Field returns a mock FieldType, or false if the field should not exist.
    func (m *mockTypeRefForOptional) Field(name string) (*types.FieldType, bool) {
    	if name == "nonExisting" {
    		return nil, false
    	}
    	return m.TypeRef.Field(name)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. pkg/controller/validatingadmissionpolicystatus/controller_test.go

    				},
    				{
    					Expression: "object.spec.replicas > '1' && object.spec.nonExisting == 1",
    				},
    			}, makePolicy("confused-deployment"))),
    			assertFieldRef: toBe("spec.validations[1].expression"),
    			assertWarnings: toHaveMultipleSubstrings([]string{"undefined field 'nonExisting'", `found no matching overload for '_>_' applied to '(int, string)'`}),
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking_test.go

    				Variables: []v1.Variable{
    					{
    						Name:       "works",
    						Expression: "true",
    					},
    				},
    				Validations: []v1.Validation{
    					{
    						Expression: "variables.nonExisting",
    					},
    				},
    				MatchConstraints: deploymentPolicy.Spec.MatchConstraints,
    			},
    			},
    			schemaToReturn: &spec.Schema{
    				SchemaProps: spec.SchemaProps{
    					Type: []string{"object"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. cmd/data-usage_test.go

    		},
    		{
    			path:   "/dir1",
    			size:   1302010,
    			objs:   5,
    			oSizes: sizeHistogram{0: 1, 1: 1, 2: 2, 4: 1},
    		},
    		{
    			path:  "/dir1/dira",
    			isNil: true,
    		},
    		{
    			path:  "/nonexistying",
    			isNil: true,
    		},
    	}
    
    	for _, w := range want {
    		p := path.Join(bucket, w.path)
    		t.Run(p, func(t *testing.T) {
    			e := got.find(p)
    			if w.isNil {
    				if e != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Mar 27 15:10:40 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. chainable_api.go

    //
    // Attrs only adds attributes if the record is not found.
    //
    //	// assign an email if the record is not found
    //	db.Where(User{Name: "non_existing"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user)
    //	// user -> User{Name: "non_existing", Email: "******@****.***"}
    //
    //	// assign an email if the record is not found, otherwise ignore provided email
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:47:34 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top