Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestNestedModel (0.07 sec)

  1. schema/schema_test.go

    	if err != nil {
    		t.Fatalf("failed to parse pointer user, got error %v", err)
    	}
    
    	if customize.Table != "customize" {
    		t.Errorf("Failed to customize table with TableName method")
    	}
    }
    
    func TestNestedModel(t *testing.T) {
    	versionUser, err := schema.Parse(&VersionUser{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    		t.Fatalf("failed to parse nested user, got error %v", err)
    	}
    
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top