2024-07-19 08:03:35 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
func TestUser_TableName(t *testing.T) {
|
2024-08-13 09:07:14 +00:00
|
|
|
user := User{}
|
|
|
|
expectedTableName := "User"
|
|
|
|
if tableName := user.TableName(); tableName != expectedTableName {
|
|
|
|
t.Fatalf("expected %s, but got %s", expectedTableName, tableName)
|
2024-07-19 08:03:35 +00:00
|
|
|
}
|
|
|
|
}
|