Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodek committed Jun 11, 2024
1 parent d9cf7d6 commit df10e84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions acp/identity/identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Test_DIDFromPublicKey_ProducesDIDForPublicKey(t *testing.T) {
}

func Test_DIDFromPublicKey_ReturnsErrorWhenProducerFails(t *testing.T) {
execTestWithMockecProducer(
execTestWithMockedProducer(
func() {
pubKey := &secp256k1.PublicKey{}
did, err := DIDFromPublicKey(pubKey)
Expand All @@ -43,7 +43,7 @@ func Test_DIDFromPublicKey_ReturnsErrorWhenProducerFails(t *testing.T) {
}

func Test_FromPublicKey_ProducerFailureCausesError(t *testing.T) {
execTestWithMockecProducer(
execTestWithMockedProducer(
func() {
pubKey := &secp256k1.PublicKey{}
identity, err := FromPublicKey(pubKey)
Expand All @@ -55,7 +55,7 @@ func Test_FromPublicKey_ProducerFailureCausesError(t *testing.T) {
}

func Test_FromPrivateKey_ProducerFailureCausesError(t *testing.T) {
execTestWithMockecProducer(
execTestWithMockedProducer(
func() {
key := &secp256k1.PrivateKey{}
identity, err := FromPrivateKey(key)
Expand All @@ -66,7 +66,7 @@ func Test_FromPrivateKey_ProducerFailureCausesError(t *testing.T) {
)
}

func execTestWithMockecProducer(test func()) {
func execTestWithMockedProducer(test func()) {
// pre: replace the producer function
didProducer = func(kt crypto.KeyType, publicKey []byte) (*key.DIDKey, error) {
return nil, fmt.Errorf("some did generation error")
Expand Down

0 comments on commit df10e84

Please sign in to comment.