Ran
|
Files
11
|
Run time
0s
|
Badge
README BADGES
|
travis-ci
Rescue on undefined local variables in frame_binding For example, I see errors on local variables: `m`, `args`, `block`, `r`, and `target` when inspecting an error on a class that inherits from SimpleDelegator. Fix: Add a rescue on NameError to catch these. Fixes issue: https://github.com/charliesome/better_errors/issues/351 Inspiration for this fix comes from @glebtv in https://github.com/glebtv/better_errors/commit/6d00365df
341 of 395 relevant lines covered (86.33%)
42.23 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|---|---|---|---|---|---|---|
40.0 | lib/better_errors/rails.rb | 28 + 18 | 15 + 9 | 6 + 3 | 9 + 6 | 1.0 | |
57.14 | lib/better_errors/repl.rb | 32 - 29 | 14 - 20 | 8 + 1 | 6 - 21 | 1.0 | |
78.57 | lib/better_errors/stack_frame.rb | 130 + 121 | 70 + 70 | 55 + 55 | 15 + 15 | 230.0 + 230 | |
82.19 | lib/better_errors/error_page.rb | 142 + 119 | 73 + 62 | 60 + 57 | 13 + 5 | 6.0 + 5 | |
84.21 | lib/better_errors/raised_exception.rb | 68 + 18 | 38 + 17 | 32 + 25 | 6 - 8 | 58.0 + 57 | |
91.49 | lib/better_errors.rb | 154 + 121 | 47 + 26 | 43 + 22 | 4 + 4 | 12.0 + 8 | |
98.65 | lib/better_errors/middleware.rb | 174 + 158 | 74 + 64 | 73 + 63 | 1 + 1 | 5.0 + 4 | |
100.0 | lib/better_errors/code_formatter/text.rb | 14 - 49 | 7 - 35 | 7 - 31 | 0 - 4 | 16.0 - 1.0 | |
100.0 | lib/better_errors/repl/basic.rb | 20 + 10 | 11 + 5 | 11 + 5 | 0 | 1.0 - 2 | |
100.0 | lib/better_errors/code_formatter.rb | 63 + 57 | 32 + 28 | 32 + 28 | 0 | 15.0 + 13 |