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

feat(BUX-444): 99% test coverage of main package methods #182

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

kuba-4chain
Copy link
Contributor

@kuba-4chain kuba-4chain commented Jan 22, 2024

Pull Request Checklist

  • πŸ“– I created my PR using provided : CODE_STANDARDS
  • πŸ“– I have read the short Code of Conduct: CODE_OF_CONDUCT
  • 🏠 I tested my changes locally.
  • βœ… I have provided tests for my changes.
  • πŸ“ I have used conventional commits.
  • πŸ“— I have updated any related documentation.
  • πŸ’Ύ PR was issued based on the Github or Jira issue.

Info

The coverage of the main package is 99% (one if statement cannot be tested). The coverage of transports package shows it's not tested, but actually it is, because the methods are interfaced and are called indirectly from the main package (previously there were also graphql methods, that's why it's interfaced).

The admin methods need to be looked into, and there are already tasks for it in JIRA.

@kuba-4chain kuba-4chain requested a review from a team as a code owner January 22, 2024 14:54
Copy link
Contributor

mergify bot commented Jan 22, 2024

Welcome to our open-source project @kuba-4chain! πŸ’˜

Copy link

codecov bot commented Jan 22, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (1243f24) 45.63% compared to head (6b20dca) 56.39%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #182       +/-   ##
===========================================
+ Coverage   45.63%   56.39%   +10.75%     
===========================================
  Files          15       16        +1     
  Lines        1192     1197        +5     
===========================================
+ Hits          544      675      +131     
+ Misses        587      447      -140     
- Partials       61       75       +14     
Flag Coverage Ξ”
unittests 56.39% <58.33%> (+10.75%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Ξ”
transactions.go 100.00% <ΓΈ> (+46.66%) ⬆️
transports/authentication.go 62.83% <100.00%> (+2.70%) ⬆️
transports/transports.go 80.00% <100.00%> (ΓΈ)
xpubs.go 100.00% <ΓΈ> (+28.57%) ⬆️
fixtures/fixtures.go 37.50% <37.50%> (ΓΈ)

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 1243f24...6b20dca. Read the comment docs.

@kuba-4chain kuba-4chain force-pushed the bux-444-test-coverage branch from 9c08466 to bd0a21f Compare January 22, 2024 14:57
@mrz1836 mrz1836 removed their assignment Jan 24, 2024
@kuba-4chain kuba-4chain force-pushed the bux-444-test-coverage branch from bd0a21f to 6b20dca Compare January 25, 2024 09:31
@kuba-4chain kuba-4chain merged commit 7ff322a into master Jan 25, 2024
10 checks passed
@kuba-4chain kuba-4chain deleted the bux-444-test-coverage branch January 25, 2024 11:00
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.

4 participants