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

DID pkg test coverage #192

Merged
merged 12 commits into from
Sep 15, 2022
Merged

Conversation

decentralgabe
Copy link
Member

Increasing test coverage. Minor refactors.

@codecov-commenter
Copy link

codecov-commenter commented Sep 14, 2022

Codecov Report

Merging #192 (0f3d051) into main (3ced400) will increase coverage by 2.34%.
The diff coverage is 74.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #192      +/-   ##
==========================================
+ Coverage   54.82%   57.17%   +2.34%     
==========================================
  Files          31       31              
  Lines        3732     3740       +8     
==========================================
+ Hits         2046     2138      +92     
+ Misses       1310     1242      -68     
+ Partials      376      360      -16     
Impacted Files Coverage Δ
did/model.go 100.00% <ø> (+44.12%) ⬆️
did/pkh.go 77.00% <56.00%> (+2.56%) ⬆️
did/web.go 78.90% <68.97%> (+19.10%) ⬆️
did/util.go 53.39% <78.57%> (+15.89%) ⬆️
did/key.go 67.68% <85.00%> (+19.32%) ⬆️
did/peer.go 55.21% <90.91%> (-0.68%) ⬇️
cryptosuite/jsonwebkey2020.go 56.94% <100.00%> (ø)
did/did.go 100.00% <100.00%> (ø)
... and 4 more

@decentralgabe decentralgabe marked this pull request as ready for review September 15, 2022 01:13
@decentralgabe
Copy link
Member Author

actually found a few issues!

did/key.go Outdated
@@ -31,6 +31,23 @@ const (
DIDKeyPrefix = "did:key"
)

func (d DIDKey) IsValid() bool {
return true
Copy link
Contributor

Choose a reason for hiding this comment

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

no checks here?

Copy link
Member Author

Choose a reason for hiding this comment

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

updated, whoops

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

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

looks great

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

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

look great!

did/key.go Outdated Show resolved Hide resolved
@decentralgabe decentralgabe merged commit 18c69f4 into main Sep 15, 2022
@decentralgabe decentralgabe deleted the did-pkg-test-coverage-to-80-ose-46 branch September 15, 2022 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants