UndercoverCI / coverage
failed
Apr 9, 2024 in 10m 50s
Complete
🚨 UndercoverCI has detected 1 warning in this changeset.
Details
Revision 52bec77
has modified the following 1 code location. Results marked with
file | name | coverage | branches |
---|---|---|---|
app/controllers/avo/application_controller.rb | set_record |
0.6667 | 1/2 |
Annotations
Check warning on line 157 in app/controllers/avo/application_controller.rb
undercoverci / coverage
Untested instance method
Instance method `set_record` is missing coverage for lines 149..150 (node coverage: 0.6667).
Missing branch coverage found in line 149.
Raw output
148: def set_record hits: n/a
149: id = if @resource.model_class.primary_key.is_a?(Array) && params.respond_to?(:extract_value) hits: 635 branches: 0/1
150: params.extract_value(:id) hits: 0
151: else hits: n/a
152: params[:id] hits: 635
153: end hits: n/a
154:
155: @record = @resource.find_record(id, query: model_scope, params:) hits: 635
156: @resource.hydrate(record: @record) hits: 635
157: end hits: n/a
Loading