Repo options
This commit is contained in:
@ -54,7 +54,7 @@ func TestListMethod(t *testing.T) {
|
||||
defer sqldb.Close()
|
||||
|
||||
repo := RepoBase[MyModel]{}
|
||||
repo.Init(db)
|
||||
repo.Init(db, nil)
|
||||
|
||||
filter := MyModelFilter{}
|
||||
options := ListOptions{
|
||||
@ -86,7 +86,7 @@ func TestListMethod(t *testing.T) {
|
||||
defer sqldb.Close()
|
||||
|
||||
repo := RepoBase[MyModel]{}
|
||||
repo.Init(db)
|
||||
repo.Init(db, nil)
|
||||
|
||||
filter := MyModelFilter{}
|
||||
options := ListOptions{
|
||||
@ -112,7 +112,7 @@ func TestListMethod(t *testing.T) {
|
||||
defer sqldb.Close()
|
||||
|
||||
repo := RepoBase[MyModel]{}
|
||||
repo.Init(db)
|
||||
repo.Init(db, nil)
|
||||
|
||||
filter := MyModelFilter{}
|
||||
options := ListOptions{
|
||||
@ -138,7 +138,7 @@ func TestListMethod(t *testing.T) {
|
||||
defer sqldb.Close()
|
||||
|
||||
repo := RepoBase[MyModel]{}
|
||||
repo.Init(db)
|
||||
repo.Init(db, nil)
|
||||
|
||||
filter := MyModelFilter{}
|
||||
options := ListOptions{
|
||||
@ -165,7 +165,7 @@ func TestListMethod(t *testing.T) {
|
||||
defer sqldb.Close()
|
||||
|
||||
repo := RepoBase[MyModel]{}
|
||||
repo.Init(db)
|
||||
repo.Init(db, nil)
|
||||
|
||||
id := uuid.New()
|
||||
filter := MyModelFilter{
|
||||
@ -189,7 +189,7 @@ func TestListMethod(t *testing.T) {
|
||||
defer sqldb.Close()
|
||||
|
||||
repo := RepoBase[MyModel]{}
|
||||
repo.Init(db)
|
||||
repo.Init(db, nil)
|
||||
|
||||
id := uuid.New()
|
||||
count := 456
|
||||
@ -217,7 +217,7 @@ func TestListMethod(t *testing.T) {
|
||||
defer sqldb.Close()
|
||||
|
||||
repo := RepoBase[MyModel]{}
|
||||
repo.Init(db)
|
||||
repo.Init(db, nil)
|
||||
|
||||
id := uuid.New()
|
||||
count := 456
|
||||
@ -251,7 +251,7 @@ func TestListMethod(t *testing.T) {
|
||||
defer sqldb.Close()
|
||||
|
||||
repo := RepoBase[MyModel]{}
|
||||
repo.Init(db)
|
||||
repo.Init(db, nil)
|
||||
|
||||
filter := MyModelFilter{}
|
||||
options := ListOptions{
|
||||
|
||||
Reference in New Issue
Block a user