Skip to content

Commit

Permalink
Updated to v0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ArbitronNL committed Oct 24, 2024
1 parent 00332e9 commit ac6132f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ linters:
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
- exhaustruct
- exportloopref
- forbidigo
- forcetypeassert
- gci
Expand Down
17 changes: 8 additions & 9 deletions internal/generic/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcd/txscript"
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"

"github.com/bitonicnl/verify-signed-message/internal/generic"
Expand Down Expand Up @@ -82,9 +81,9 @@ func (s *ValidateTestSuite) TestValidateP2PKH() {
}

for _, tt := range tests {
s.T().Run(tt.name, func(t *testing.T) {
s.Run(tt.name, func() {
_, err := generic.ValidateP2PKH(tt.args.recoveryFlag, tt.args.pubKeyHash, tt.args.addr, &chaincfg.MainNetParams)
require.Equal(t, tt.want, err)
s.Require().Equal(tt.want, err)
})
}
}
Expand Down Expand Up @@ -132,9 +131,9 @@ func (s *ValidateTestSuite) TestValidateP2SH() {
}

for _, tt := range tests {
s.T().Run(tt.name, func(t *testing.T) {
s.Run(tt.name, func() {
_, err := generic.ValidateP2SH(tt.args.recoveryFlag, tt.args.pubKeyHash, tt.args.addr, &chaincfg.MainNetParams)
require.Equal(t, tt.want, err)
s.Require().Equal(tt.want, err)
})
}
}
Expand Down Expand Up @@ -173,9 +172,9 @@ func (s *ValidateTestSuite) TestValidateP2WPKH() {
}

for _, tt := range tests {
s.T().Run(tt.name, func(t *testing.T) {
s.Run(tt.name, func() {
_, err := generic.ValidateP2WPKH(tt.args.recoveryFlag, tt.args.witnessProg, tt.args.addr, &chaincfg.MainNetParams)
require.Equal(t, tt.want, err)
s.Require().Equal(tt.want, err)
})
}
}
Expand Down Expand Up @@ -230,9 +229,9 @@ func (s *ValidateTestSuite) TestValidateP2TR() {
}

for _, tt := range tests {
s.T().Run(tt.name, func(t *testing.T) {
s.Run(tt.name, func() {
_, err := generic.ValidateP2TR(tt.args.recoveryFlag, tt.args.pubKey, tt.args.addr, &chaincfg.MainNetParams)
require.Equal(t, tt.want, err)
s.Require().Equal(tt.want, err)
})
}
}
Expand Down

0 comments on commit ac6132f

Please sign in to comment.