Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodek committed Jun 14, 2024
1 parent 6dbd782 commit 6982d9e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions acp/identity/identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,6 @@ import (
"github.com/stretchr/testify/require"
)

var _ didProvider = (*mockedDIDProvider)(nil)

// mockedDIDProvider implemented didProvider but always fails
type mockedDIDProvider struct{}

func (p *mockedDIDProvider) DIDFromSecp256k1(key *secp256k1.PublicKey) (string, error) {
return "", fmt.Errorf("some did generation error")
}

// newFailableIdentityProvider returns an identityProvider that always fails
func newFailableIdentityProvider() identityProvider {
return identityProvider{
didProv: &mockedDIDProvider{},
}
}

func Test_DIDFromPublicKey_ProducesDIDForPublicKey(t *testing.T) {
pubKey := &secp256k1.PublicKey{}

Expand Down

0 comments on commit 6982d9e

Please sign in to comment.