-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core/coretesting): make memDB satisfy db.Db interface (#22570)
- Loading branch information
1 parent
c6522a7
commit d810b77
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package integration | ||
|
||
import ( | ||
coretesting "cosmossdk.io/core/testing" | ||
|
||
db "github.com/cosmos/cosmos-db" | ||
) | ||
|
||
// This file contains a list of type checks that are used to ensure that implementations | ||
// matches the interface. We do not do those type checks directly in the components to | ||
// avoid to bring in more dependencies than needed. | ||
var ( | ||
_ db.DB = (*coretesting.MemDB)(nil) | ||
) |