We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1bf5e3 commit ad4c750Copy full SHA for ad4c750
internal/template/method.go
@@ -308,12 +308,12 @@ func Test_{{.QueryStructName}}Query(t *testing.T) {
308
t.Error("create item in table <{{.TableName}}> fail:", err)
309
}
310
311
-{{- if not .HasUniqueIndex }}
+{{ if not .HasUniqueIndex }}
312
err = _do.CreateInBatches([]*{{.StructInfo.Package}}.{{.ModelStructName}}{ {}, {} }, 10)
313
if err != nil {
314
315
316
-{{- end }}
+{{ end }}
317
_, err = _do.Select({{.QueryStructName}}.ALL).Take()
318
319
t.Error("Take() on table <{{.TableName}}> fail:", err)
0 commit comments