Skip to content

Commit

Permalink
Generating mock package for db
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnius committed Feb 10, 2021
1 parent c685992 commit 391d769
Show file tree
Hide file tree
Showing 2 changed files with 413 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"github.com/codefluence-x/monorepo/kontext"
)

//go:generate mockgen -source=./db.go -destination=./mock/db_mock.go -package mock

// DB is database interface wrapper for *sql.DB
type DB interface {
Ping(ktx kontext.Context) exception.Exception
Expand Down
Loading

0 comments on commit 391d769

Please sign in to comment.