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

Add test.Err and clean up tests #2

Merged
merged 1 commit into from
Aug 15, 2023
Merged

Add test.Err and clean up tests #2

merged 1 commit into from
Aug 15, 2023

Conversation

FollowTheProcess
Copy link
Owner

Description

Adds a public function test.Err that fails if the provided err is equal to nil. effectively the opposite of test.Ok

Also refactored the tests to be neater and call shouldPass or shouldFail in a loop

Motivation and Context

Closes #

How Has This Been Tested?

Checklist

  • I have updated the documentation if needed.
  • I have updated the tests if needed.

@codecov
Copy link

codecov bot commented Aug 15, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (fc3bb0c) 100.00% compared to head (a7d18d1) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           50        55    +5     
=========================================
+ Hits            50        55    +5     
Files Changed Coverage Δ
test.go 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FollowTheProcess FollowTheProcess merged commit 52b38de into main Aug 15, 2023
@FollowTheProcess FollowTheProcess deleted the feat/test.Err branch August 15, 2023 07:45
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.

1 participant