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

fix: Improve some internal return signatures and introduce testify #24

Merged
merged 2 commits into from
Apr 13, 2023

Conversation

tarkatronic
Copy link
Contributor

@tarkatronic tarkatronic commented Apr 13, 2023

Fixes #23

Switching away from my Pythonic roots to make our return signatures more Go-like. Go-onic? Go-ish? I dunno. Idiomatic.

This also introduces https://github.com/stretchr/testify for better testing assertions.

@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #24 (2683823) into main (2f14fd6) will decrease coverage by 0.14%.
The diff coverage is 30.76%.

@@           Coverage Diff            @@
##            main     #24      +/-   ##
========================================
- Coverage   6.74%   6.60%   -0.14%     
========================================
  Files          9       9              
  Lines        341     348       +7     
========================================
  Hits          23      23              
- Misses       318     325       +7     
Flag Coverage Δ
unittests 6.60% <30.76%> (-0.14%) ⬇️

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

Impacted Files Coverage Δ
internal/scan.go 0.00% <0.00%> (ø)
config/config.go 60.71% <88.88%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@JoseAngel1196 JoseAngel1196 left a comment

Choose a reason for hiding this comment

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

Nice!

@tarkatronic
Copy link
Contributor Author

Looks like this technically decreases code coverage 😅 I'm going to merge anyhow, and we will have an initiative to improve test coverage separately.

@tarkatronic tarkatronic merged commit 9fe749a into main Apr 13, 2023
@tarkatronic tarkatronic deleted the fix/better-return-signatures branch April 13, 2023 18:37
@JoseAngel1196
Copy link
Contributor

Looks like this technically decreases code coverage 😅 I'm going to merge anyhow, and we will have an initiative to improve test coverage separately.

Yup! I'm actually working on that right now 😄

@tarkatronic tarkatronic added this to the Version 1.0 milestone May 16, 2023
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

2 participants