-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Unhandled NaN for floor
at line 100 in plugin.rb
# It returns a specific class code coverage and an emoji status as well
def report_class(jacoco_class)
report_result = {
covered: 'No coverage data found : -',
status: ':black_joker:',
required_coverage_percentage: 'No coverage data found : -'
}
counter = coverage_counter(jacoco_class)
unless counter.nil?
coverage = (counter.covered.fdiv(counter.covered + counter.missed) * 100).floor
Output
/vendor/ruby/2.7.0/gems/danger-jacoco-0.1.8/lib/jacoco/plugin.rb:100:in `floor': \e[31m (Danger::DSLError)
[!] Invalid `Dangerfile` file: NaN\e[0m
Metadata
Metadata
Assignees
Labels
No labels