Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReplaceEmptyTableName (0.11 sec)

  1. schema/naming_test.go

    	if formattedName != "prefix_table_thisIsAVeryVeryVeryVeryVeryVeryVeryVeryVery180f2c67" {
    		t.Errorf("invalid formatted name generated, got %v", formattedName)
    	}
    }
    
    func TestReplaceEmptyTableName(t *testing.T) {
    	ns := NamingStrategy{
    		SingularTable: true,
    		NameReplacer:  strings.NewReplacer("Model", ""),
    	}
    	tableName := ns.TableName("Model")
    	if tableName != "Model" {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue May 30 02:00:48 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top