go-tell/internal/persistence/models_test.go

17 lines
384 B
Go
Raw Normal View History

2026-09-19 14:48:42 +02:00
package persistence
import "testing"
func TestModelsUseMigrationTableNames(t *testing.T) {
tests := map[string]string{
"users": (UserModel{}).TableName(),
"admins": (AdminModel{}).TableName(),
"sessions": (SessionModel{}).TableName(),
}
for expected, actual := range tests {
if actual != expected {
t.Errorf("table name = %q, want %q", actual, expected)
}
}
}