sqlboiler/templates_test/all.tpl

14 lines
425 B
Smarty
Raw Normal View History

{{- $tableNameSingular := .Table.Name | singular | titleCase -}}
{{- $tableNamePlural := .Table.Name | plural | titleCase -}}
{{- $varNamePlural := .Table.Name | plural | camelCase -}}
{{- $varNameSingular := .Table.Name | singular | camelCase -}}
func Test{{$tableNamePlural}}(t *testing.T) {
2016-08-14 10:58:36 +02:00
t.Parallel()
2016-08-14 10:58:36 +02:00
query := {{$tableNamePlural}}(nil)
2016-08-14 10:58:36 +02:00
if query.Query == nil {
t.Error("expected a query, got nothing")
}
}