Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilthoniel committed Apr 8, 2020
1 parent ffaf1b2 commit 64d7dbb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
24 changes: 0 additions & 24 deletions cosi/flatcosi/mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,30 +326,6 @@ func (m fakeMessage) Pack(encoding.ProtoMarshaler) (proto.Message, error) {
return &empty.Empty{}, m.err
}

type fakeIterator struct {
crypto.PublicKeyIterator
count int
pubkey crypto.PublicKey
}

func (i *fakeIterator) HasNext() bool {
return i.count > 0 && i.pubkey != nil
}

func (i *fakeIterator) GetNext() crypto.PublicKey {
i.count--
return i.pubkey
}

type fakeCollectiveAuthority struct {
crypto.CollectiveAuthority
pubkey crypto.PublicKey
}

func (ca fakeCollectiveAuthority) PublicKeyIterator() crypto.PublicKeyIterator {
return &fakeIterator{count: 2, pubkey: ca.pubkey}
}

type fakeSignature struct {
crypto.Signature
err error
Expand Down
18 changes: 0 additions & 18 deletions crypto/bls/mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,24 +220,6 @@ func TestVerifier_Verify(t *testing.T) {
require.NoError(t, err)
}

type fakeIterator struct {
count int
bad bool
}

func (i *fakeIterator) HasNext() bool {
return i.count > 0
}

func (i *fakeIterator) GetNext() crypto.PublicKey {
i.count--
if i.bad {
return fakePublicKey{}
}

return publicKey{point: suite.Point()}
}

func TestVerifierFactory_FromAuthority(t *testing.T) {
factory := verifierFactory{}

Expand Down

0 comments on commit 64d7dbb

Please sign in to comment.