Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
begmaroman committed Jul 17, 2024
1 parent 9739f0d commit f9583ab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions db/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@ import (
"github.com/stretchr/testify/require"
)

func Test_New(t *testing.T) {
t.Parallel()

db, mock, err := sqlmock.New()
require.NoError(t, err)

defer db.Close()

constructorExpect(mock)

wdb := sqlx.NewDb(db, "postgres")

_, err = New(context.Background(), wdb)
require.NoError(t, err)
}

func Test_DB_StoreLastProcessedBlock(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit f9583ab

Please sign in to comment.