Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDataRace (0.76 sec)

  1. schema/relationship_test.go

    }
    
    type Info2 struct {
    	CreatedAt time.Time
    	UpdatedAt time.Time
    	Code      string
    	Relation  []*InfoRelation `gorm:"foreignkey:Code;references:Code"`
    }
    
    func TestDataRace(t *testing.T) {
    	syncMap := &sync.Map{}
    	for i := 0; i < 10; i++ {
    		go func() {
    			schema.Parse(&Info1{}, syncMap, schema.NamingStrategy{IdentifierMaxLength: 64})
    		}()
    
    		go func() {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 26.5K bytes
    - Viewed (0)
Back to top