Skip to content

Commit

Permalink
test: TestProtoAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 3, 2024
1 parent 7e1eeba commit 052fe55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import (

"cosmossdk.io/log"
db "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/types/msgservice"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
"github.com/cosmos/gogoproto/proto"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -34,3 +36,10 @@ func TestGetMaccPerms(t *testing.T) {
dup := GetMaccPerms()
require.Equal(t, maccPerms, dup, "duplicated module account permissions differed from actual module account permissions")
}

func TestProtoAnnotations(t *testing.T) {
r, err := proto.MergedRegistry()
require.NoError(t, err)
err = msgservice.ValidateProtoAnnotations(r)
require.NoError(t, err)
}

0 comments on commit 052fe55

Please sign in to comment.