Skip to content

Commit

Permalink
correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverpool committed Oct 10, 2023
1 parent ed642e6 commit f6876b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/provider/provider_options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestNewProvider(t *testing.T) {
check.NoError(t, err)
fsys := newFsys()
t.Run("invalid", func(t *testing.T) {
// Empty dialect not allowed
// Nil storageFactory not allowed
_, err = NewProvider(nil, db, fsys)
check.HasError(t, err)
// Nil db not allowed
Expand All @@ -37,13 +37,13 @@ func TestNewProvider(t *testing.T) {
check.Equal(t, "table must not be empty", err.Error())
})
t.Run("valid", func(t *testing.T) {
// Valid dialect, db, and fsys allowed
// Valid storageFactory, db, and fsys allowed
_, err = NewProvider(storage.Sqlite3, db, fsys)
check.NoError(t, err)
// Valid dialect, db, fsys, and table name allowed
// Valid storageFactory, db, fsys, and table name allowed
_, err = NewProvider(storage.Sqlite3, db, fsys, WithTableName("foo"))
check.NoError(t, err)
// Valid dialect, db, fsys, and verbose allowed
// Valid storageFactory, db, fsys, and verbose allowed
_, err = NewProvider(storage.Sqlite3, db, fsys, WithVerbose())
check.NoError(t, err)
})
Expand Down

0 comments on commit f6876b7

Please sign in to comment.