sqldb+invoices: move SQL invoice store impl to invoices package
This commit is contained in:
4 files changed
+169
-165
No files matched your search
@@ -136,14 +136,14 @@ func TestInvoiceRegistry(t *testing.T) {
|
||||
}
|
||||
|
||||
executor := sqldb.NewTransactionExecutor(
|
||||
db, func(tx *sql.Tx) sqldb.InvoiceQueries {
|
||||
db, func(tx *sql.Tx) invpkg.SQLInvoiceQueries {
|
||||
return db.WithTx(tx)
|
||||
},
|
||||
)
|
||||
|
||||
testClock := clock.NewTestClock(testNow)
|
||||
|
||||
return sqldb.NewInvoiceStore(executor, testClock), testClock
|
||||
return invpkg.NewSQLStore(executor, testClock), testClock
|
||||
}
|
||||
|
||||
for _, test := range testList {
|
||||
|
||||
@@ -240,14 +240,14 @@ func TestInvoices(t *testing.T) {
|
||||
}
|
||||
|
||||
executor := sqldb.NewTransactionExecutor(
|
||||
db, func(tx *sql.Tx) sqldb.InvoiceQueries {
|
||||
db, func(tx *sql.Tx) invpkg.SQLInvoiceQueries {
|
||||
return db.WithTx(tx)
|
||||
},
|
||||
)
|
||||
|
||||
testClock := clock.NewTestClock(testNow)
|
||||
|
||||
return sqldb.NewInvoiceStore(executor, testClock)
|
||||
return invpkg.NewSQLStore(executor, testClock)
|
||||
}
|
||||
|
||||
for _, test := range testList {
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user