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