File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 26
26
# # PROJECT::SPECIFIC
27
27
28
28
.yardoc
29
+ .ruby-version
29
30
spec /fixtures /coverage
30
31
spec /fixtures /frameworks /coverage
31
32
test_projects /** /coverage
Original file line number Diff line number Diff line change @@ -14,13 +14,16 @@ module FilesCombiner
14
14
#
15
15
# @return [Hash]
16
16
#
17
- def combine ( coverage_a , coverage_b )
17
+ def combine ( cov_a , cov_b )
18
18
combination = { }
19
- combination [ :lines ] = Combine . combine ( LinesCombiner , coverage_a [ :lines ] , coverage_b [ :lines ] )
19
+ combination [ :lines ] = Combine . combine ( LinesCombiner , cov_a [ :lines ] , cov_b [ :lines ] )
20
20
21
- if SimpleCov . branch_coverage?
22
- combination [ :branches ] = Combine . combine ( BranchesCombiner , coverage_a [ :branches ] , coverage_b [ :branches ] )
23
- combination [ :methods ] = Combine . combine ( MethodsCombiner , coverage_a [ :methods ] , coverage_b [ :methods ] )
21
+ if SimpleCov . branch_coverage? # rubocop:disable Style/IfUnlessModifier
22
+ combination [ :branches ] = Combine . combine ( BranchesCombiner , cov_a [ :branches ] , cov_b [ :branches ] )
23
+ end
24
+
25
+ if SimpleCov . method_coverage? # rubocop:disable Style/IfUnlessModifier
26
+ combination [ :methods ] = Combine . combine ( MethodsCombiner , cov_a [ :methods ] , cov_b [ :methods ] )
24
27
end
25
28
26
29
combination
Original file line number Diff line number Diff line change @@ -409,8 +409,7 @@ def method_coverage?
409
409
end
410
410
411
411
def coverage_start_arguments_supported?
412
- # safe to cache as within one process this value should never
413
- # change
412
+ # safe to cache as within one process this value should never change
414
413
return @coverage_start_arguments_supported if defined? ( @coverage_start_arguments_supported )
415
414
416
415
@coverage_start_arguments_supported = begin
@@ -426,19 +425,16 @@ def coverage_start_arguments_supported?
426
425
427
426
def raise_if_criterion_disabled ( criterion )
428
427
raise_if_criterion_unsupported ( criterion )
429
- # rubocop:disable Style/IfUnlessModifier
430
- unless coverage_criterion_enabled? ( criterion )
428
+
429
+ unless coverage_criterion_enabled? ( criterion ) # rubocop:disable Style/IfUnlessModifier
431
430
raise "Coverage criterion #{ criterion } is disabled! Please enable it first through enable_coverage #{ criterion } (if supported)"
432
431
end
433
- # rubocop:enable Style/IfUnlessModifier
434
432
end
435
433
436
434
def raise_if_criterion_unsupported ( criterion )
437
- # rubocop:disable Style/IfUnlessModifier
438
- unless SUPPORTED_COVERAGE_CRITERIA . member? ( criterion )
435
+ unless SUPPORTED_COVERAGE_CRITERIA . member? ( criterion ) # rubocop:disable Style/IfUnlessModifier
439
436
raise "Unsupported coverage criterion #{ criterion } , supported values are #{ SUPPORTED_COVERAGE_CRITERIA } "
440
437
end
441
- # rubocop:enable Style/IfUnlessModifier
442
438
end
443
439
444
440
def minimum_possible_coverage_exceeded ( coverage_option )
Original file line number Diff line number Diff line change 49
49
50
50
before do
51
51
SimpleCov . enable_coverage :branch
52
+ SimpleCov . enable_coverage :method
52
53
end
53
54
54
55
context "a merge" do
You can’t perform that action at this time.
0 commit comments