Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added better test code coverage for did peer #237

Merged
merged 8 commits into from
Oct 19, 2022

Conversation

andorsk
Copy link
Contributor

@andorsk andorsk commented Oct 19, 2022

adding more test coverage to did peer. #209

@andorsk andorsk self-assigned this Oct 19, 2022
@andorsk andorsk added the dids label Oct 19, 2022
@andorsk
Copy link
Contributor Author

andorsk commented Oct 19, 2022

@decentralgabe sorry for taking so long on this. Just haven't had a lot of cycles to spare lately. I'll see about adding even more tests in a future PR. For now, this should help a little with code coverage re: did peer

@andorsk andorsk marked this pull request as ready for review October 19, 2022 10:15
@codecov-commenter
Copy link

codecov-commenter commented Oct 19, 2022

Codecov Report

Merging #237 (5a1f4c4) into main (c5db114) will increase coverage by 1.13%.
The diff coverage is 78.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #237      +/-   ##
==========================================
+ Coverage   58.10%   59.23%   +1.13%     
==========================================
  Files          35       35              
  Lines        4143     4155      +12     
==========================================
+ Hits         2407     2461      +54     
+ Misses       1333     1296      -37     
+ Partials      403      398       -5     
Impacted Files Coverage Δ
crypto/models.go 10.00% <ø> (ø)
did/model.go 100.00% <ø> (ø)
did/util.go 50.00% <66.67%> (+2.53%) ⬆️
did/peer.go 66.03% <81.25%> (+14.52%) ⬆️

crypto/models.go Outdated Show resolved Hide resolved
did/peer.go Outdated Show resolved Hide resolved
did/peer.go Outdated Show resolved Hide resolved
did/peer_test.go Outdated Show resolved Hide resolved
did/peer_test.go Outdated Show resolved Hide resolved
did/peer_test.go Outdated Show resolved Hide resolved
@decentralgabe
Copy link
Member

thanks for taking the time to add these @andorsk !

d, ok := did.(DIDPeer)
if !ok {
return nil, errors.Wrap(util.CastingError, "did:peer")
}

// The '=' at the end is an artifact of the encoding, and will mess up the decoding
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you mean to comment this out?

@andorsk andorsk closed this Oct 19, 2022
@andorsk andorsk deleted the test/did-code-cov branch October 19, 2022 16:27
@decentralgabe
Copy link
Member

@andorsk this didn't get merged into main, did it? did you intend to close it

@andorsk andorsk restored the test/did-code-cov branch October 19, 2022 19:38
@andorsk
Copy link
Contributor Author

andorsk commented Oct 19, 2022

oh. sorry. my mistake. misread the merge as it was going into main. I'll reopen it. Thanks. Sorry about that.

@andorsk andorsk reopened this Oct 19, 2022
@decentralgabe decentralgabe merged commit b1440aa into TBD54566975:main Oct 19, 2022
@andorsk andorsk deleted the test/did-code-cov branch October 20, 2022 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants