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

Rename failIf test helper to fatalIf since it uses t.Fatal #189

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

dylanahsmith
Copy link
Collaborator

Problem

The testing package has both t.Fail and t.Fatal, so calling the test helper method failIf makes it seem like it would call t.Fail and continue executing when it actually calls t.Fatal.

Solution

Renaming to fatalIf will make its behaviour clearer without looking at its implementation.

@codecov
Copy link

codecov bot commented Sep 30, 2021

Codecov Report

Merging #189 (78a0fd9) into master (1e572ef) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #189   +/-   ##
=======================================
  Coverage   95.23%   95.23%           
=======================================
  Files          12       12           
  Lines         483      483           
=======================================
  Hits          460      460           
  Misses         14       14           
  Partials        9        9           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e572ef...78a0fd9. Read the comment docs.

@dylanahsmith dylanahsmith merged commit 5ee9d3f into master Sep 30, 2021
@dylanahsmith dylanahsmith deleted the fatal-if branch September 30, 2021 20:09
GustavoCaso pushed a commit to GustavoCaso/v8go that referenced this pull request Oct 14, 2021
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.

2 participants