Skip to content

Commit

Permalink
Eagerly throw UndefVarError
Browse files Browse the repository at this point in the history
This error doesn't need to be shrunk; it's a clear programmer error
not influenced by any of our generated inputs, so there's no sense
in wasting compute by shrinking a "counterexample" to the property.
  • Loading branch information
Seelengrab committed Mar 2, 2024
1 parent 4c94909 commit 906473a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/teststate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ function test_function(ts::TestState, tc::TestCase)
catch e
# Interrupts are an abort signal, so rethrow
e isa InterruptException && rethrow()
# UndefVarError are a programmer error, so rethrow
e isa UndefVarError && rethrow()
# These are wanted rejections
e isa TestException && return (false, false)
# true errors are always interesting
Expand Down

0 comments on commit 906473a

Please sign in to comment.