76d4b84019
* This fixes postgres deadlocks
13 lines
425 B
Smarty
13 lines
425 B
Smarty
{{- $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) {
|
|
t.Parallel()
|
|
|
|
query := {{$tableNamePlural}}(nil)
|
|
|
|
if query.Query == nil {
|
|
t.Error("expected a query, got nothing")
|
|
}
|
|
}
|