Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 414 for name (0.2 sec)

  1. internal/event/name_test.go

    	var blankName Name
    
    	testCases := []struct {
    		data         []byte
    		expectedName Name
    		expectErr    bool
    	}{
    		{[]byte("<Name>s3:ObjectAccessed:*</Name>"), ObjectAccessedAll, false},
    		{[]byte("<Name>s3:ObjectRemoved:Delete</Name>"), ObjectRemovedDelete, false},
    		{[]byte("<Name>s3:ObjectRemoved:NoOP</Name>"), ObjectRemovedNoOP, false},
    		{[]byte("<Name></Name>"), blankName, true},
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. tests/named_argument_test.go

    	DB.Where("name1 = @name OR name2 = @name OR name3 = @name", sql.Named("name", "jinzhu2")).First(&result2)
    
    	AssertEqual(t, result2, namedUser)
    
    	var result3 NamedUser
    	DB.Where("name1 = @name OR name2 = @name OR name3 = @name", map[string]interface{}{"name": "jinzhu2"}).First(&result3)
    
    	AssertEqual(t, result3, namedUser)
    
    	var result4 NamedUser
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Dec 21 11:50:00 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  3. schema/schema_helper_test.go

    		if r, ok := s.Relationships.Relations[relation.Name]; ok {
    			if r.Name != relation.Name {
    				t.Errorf("schema %v relation name expects %v, but got %v", s, r.Name, relation.Name)
    			}
    
    			if r.Type != relation.Type {
    				t.Errorf("schema %v relation name expects %v, but got %v", s, r.Type, relation.Type)
    			}
    
    			if r.Schema.Name != relation.Schema {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:31:23 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  4. internal/event/rulesmap_test.go

    	rulesMapToAddCase2 := NewRulesMap([]Name{ObjectCreatedAll}, "*", TargetID{"1", "webhook"})
    	expectedResultCase2 := NewRulesMap([]Name{ObjectCreatedAll}, "*", TargetID{"1", "webhook"})
    
    	rulesMapCase3 := NewRulesMap([]Name{ObjectCreatedAll}, "*", TargetID{"1", "webhook"})
    	rulesMapToAddCase3 := NewRulesMap([]Name{ObjectCreatedAll}, "2010*.jpg", TargetID{"1", "webhook"})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Jan 05 18:43:06 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  5. istioctl/pkg/util/handlers/handlers.go

    	kubelib "istio.io/istio/pkg/kube"
    )
    
    // InferPodInfo Uses name to infer namespace if the passed name contains namespace information.
    // Otherwise uses the namespace value passed into the function
    func InferPodInfo(name, defaultNS string) (string, string) {
    	return inferNsInfo(name, defaultNS)
    }
    
    // inferNsInfo Uses name to infer namespace if the passed name contains namespace information.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 06 15:01:41 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  6. tests/distinct_test.go

    		t.Fatalf("errors happened when create users: %v", err)
    	}
    
    	var names []string
    	DB.Table("users").Where("name like ?", "distinct%").Order("name").Pluck("name", &names)
    	AssertEqual(t, names, []string{"distinct", "distinct", "distinct", "distinct-2", "distinct-3"})
    
    	var names1 []string
    	DB.Model(&User{}).Where("name like ?", "distinct%").Distinct().Order("name").Pluck("Name", &names1)
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Jan 06 07:02:53 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  7. schema/naming.go

    }
    
    func (ns NamingStrategy) toDBName(name string) string {
    	if name == "" {
    		return ""
    	}
    
    	if ns.NameReplacer != nil {
    		tmpName := ns.NameReplacer.Replace(name)
    
    		if tmpName == "" {
    			return name
    		}
    
    		name = tmpName
    	}
    
    	if ns.NoLowerCase {
    		return name
    	}
    
    	var (
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  8. cmd/bucket-replication-utils_test.go

    			t.Errorf("Test%d (%s): ReplicationStatus  got %s , want %s", i+1, test.name, repStatus, test.expectedReplicationStatus)
    		}
    		if action := rinfos.Action(); action != test.expectedAction {
    			t.Errorf("Test%d (%s): Action  got %s , want %s", i+1, test.name, action, test.expectedAction)
    		}
    	}
    }
    
    var parseReplicationDecisionTest = []struct {
    	name   string
    	dsc    string
    	expDsc ReplicateDecision
    	expErr error
    }{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 08 20:27:40 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  9. clause/select_test.go

    			}, clause.Select{
    				Columns: []clause.Column{{Name: "name"}},
    			}, clause.From{}},
    			"SELECT `name` FROM `users`", nil,
    		},
    		{
    			[]clause.Interface{clause.Select{
    				Expression: clause.CommaExpression{
    					Exprs: []clause.Expression{
    						clause.NamedExpr{"?", []interface{}{clause.Column{Name: "id"}}},
    						clause.NamedExpr{"?", []interface{}{clause.Column{Name: "name"}}},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Feb 18 01:06:43 GMT 2023
    - 1.7K bytes
    - Viewed (0)
  10. tests/postgres_test.go

    func TestPostgres(t *testing.T) {
    	if DB.Dialector.Name() != "postgres" {
    		t.Skip()
    	}
    
    	type Harumph struct {
    		gorm.Model
    		Name      string         `gorm:"check:name_checker,name <> ''"`
    		Test      uuid.UUID      `gorm:"type:uuid;not null;default:gen_random_uuid()"`
    		CreatedAt time.Time      `gorm:"type:TIMESTAMP WITHOUT TIME ZONE"`
    		UpdatedAt time.Time      `gorm:"type:TIMESTAMP WITHOUT TIME ZONE;default:current_timestamp"`
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Oct 08 09:16:32 GMT 2022
    - 6.4K bytes
    - Viewed (3)
Back to top