Skip to content

Commit 564d3b3

Browse files
committed
ci: more masking for codecov
1 parent 9c7e658 commit 564d3b3

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

src/Evaluate.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ function deg1_l2_ll0_lr0_eval(
586586
x_l = op_l(val_ll, cX[feature_lr, j])::T
587587
x = is_valid(x_l) ? op(x_l)::T : T(Inf)
588588
cumulator[j] = x
589-
end
589+
end # COV_EXCL_LINE
590590
return ResultOk(cumulator, true)
591591
elseif get_child(get_child(tree, 1), 2).constant
592592
feature_ll = get_child(get_child(tree, 1), 1).feature
@@ -597,7 +597,7 @@ function deg1_l2_ll0_lr0_eval(
597597
x_l = op_l(cX[feature_ll, j], val_lr)::T
598598
x = is_valid(x_l) ? op(x_l)::T : T(Inf)
599599
cumulator[j] = x
600-
end
600+
end # COV_EXCL_LINE
601601
return ResultOk(cumulator, true)
602602
else
603603
feature_ll = get_child(get_child(tree, 1), 1).feature
@@ -607,7 +607,7 @@ function deg1_l2_ll0_lr0_eval(
607607
x_l = op_l(cX[feature_ll, j], cX[feature_lr, j])::T
608608
x = is_valid(x_l) ? op(x_l)::T : T(Inf)
609609
cumulator[j] = x
610-
end
610+
end # COV_EXCL_LINE
611611
return ResultOk(cumulator, true)
612612
end
613613
end
@@ -635,7 +635,7 @@ function deg1_l1_ll0_eval(
635635
x_l = op_l(cX[feature_ll, j])::T
636636
x = is_valid(x_l) ? op(x_l)::T : T(Inf)
637637
cumulator[j] = x
638-
end
638+
end # COV_EXCL_LINE
639639
return ResultOk(cumulator, true)
640640
end
641641
end
@@ -663,7 +663,7 @@ function deg2_l0_r0_eval(
663663
@inbounds @simd for j in axes(cX, 2)
664664
x = op(val_l, cX[feature_r, j])::T
665665
cumulator[j] = x
666-
end
666+
end # COV_EXCL_LINE
667667
return ResultOk(cumulator, true)
668668
elseif get_child(tree, 2).constant
669669
cumulator = get_array(eval_options.buffer, cX, axes(cX, 2))
@@ -673,7 +673,7 @@ function deg2_l0_r0_eval(
673673
@inbounds @simd for j in axes(cX, 2)
674674
x = op(cX[feature_l, j], val_r)::T
675675
cumulator[j] = x
676-
end
676+
end # COV_EXCL_LINE
677677
return ResultOk(cumulator, true)
678678
else
679679
cumulator = get_array(eval_options.buffer, cX, axes(cX, 2))
@@ -682,7 +682,7 @@ function deg2_l0_r0_eval(
682682
@inbounds @simd for j in axes(cX, 2)
683683
x = op(cX[feature_l, j], cX[feature_r, j])::T
684684
cumulator[j] = x
685-
end
685+
end # COV_EXCL_LINE
686686
return ResultOk(cumulator, true)
687687
end
688688
end
@@ -701,14 +701,14 @@ function deg2_l0_eval(
701701
@inbounds @simd for j in eachindex(cumulator)
702702
x = op(val, cumulator[j])::T
703703
cumulator[j] = x
704-
end
704+
end # COV_EXCL_LINE
705705
return ResultOk(cumulator, true)
706706
else
707707
feature = get_child(tree, 1).feature
708708
@inbounds @simd for j in eachindex(cumulator)
709709
x = op(cX[feature, j], cumulator[j])::T
710710
cumulator[j] = x
711-
end
711+
end # COV_EXCL_LINE
712712
return ResultOk(cumulator, true)
713713
end
714714
end
@@ -727,14 +727,14 @@ function deg2_r0_eval(
727727
@inbounds @simd for j in eachindex(cumulator)
728728
x = op(cumulator[j], val)::T
729729
cumulator[j] = x
730-
end
730+
end # COV_EXCL_LINE
731731
return ResultOk(cumulator, true)
732732
else
733733
feature = get_child(tree, 2).feature
734734
@inbounds @simd for j in eachindex(cumulator)
735735
x = op(cumulator[j], cX[feature, j])::T
736736
cumulator[j] = x
737-
end
737+
end # COV_EXCL_LINE
738738
return ResultOk(cumulator, true)
739739
end
740740
end
@@ -769,7 +769,7 @@ end
769769
nops = get_nops(operators, Val(degree))
770770
get_inputs = quote
771771
cs = get_children(tree, Val($degree))
772-
Base.Cartesian.@nexprs(
772+
Base.Cartesian.@nexprs( # COV_EXCL_LINE
773773
$degree,
774774
i -> begin # COV_EXCL_LINE
775775
input_i = let result = dispatch_constant_tree(cs[i], operators)
@@ -1027,7 +1027,7 @@ end
10271027
nops = get_nops(operators, Val(degree))
10281028
quote
10291029
cs = get_children(tree, Val($degree))
1030-
Base.Cartesian.@nexprs(
1030+
Base.Cartesian.@nexprs( # COV_EXCL_LINE
10311031
$degree,
10321032
i -> begin # COV_EXCL_LINE
10331033
cumulator_i =

src/EvaluateDerivative.jl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ end
113113
dx = Base.Cartesian.@ncall($N, +, i -> grad_i * dx_cumulator_i[j])
114114
x_cumulator_1[j] = x
115115
dx_cumulator_1[j] = dx
116-
end
116+
end # COV_EXCL_LINE
117117
return ResultOk2(x_cumulator_1, dx_cumulator_1, true)
118118
end
119119
end
@@ -143,14 +143,14 @@ end
143143

144144
if nops > OPERATOR_LIMIT_BEFORE_SLOWDOWN
145145
quote
146-
$setup
146+
$setup # COV_EXCL_LINE
147147
diff_degn_eval(
148148
x_cumulators, dx_cumulators, operators[$degree][op_idx], direction
149149
)
150150
end
151151
else
152152
quote
153-
$setup
153+
$setup # COV_EXCL_LINE
154154
Base.Cartesian.@nif(
155155
$nops,
156156
i -> i == op_idx, # COV_EXCL_LINE
@@ -316,12 +316,12 @@ end
316316
nops = get_nops(operators, Val(degree))
317317
if nops > OPERATOR_LIMIT_BEFORE_SLOWDOWN
318318
quote
319-
$setup
319+
$setup # COV_EXCL_LINE
320320
grad_degn_eval(x_cumulators, d_cumulators, operators[$degree][op_idx])
321321
end
322322
else
323323
quote
324-
$setup
324+
$setup # COV_EXCL_LINE
325325
Base.Cartesian.@nif(
326326
$nops,
327327
i -> i == op_idx, # COV_EXCL_LINE
@@ -354,10 +354,12 @@ end
354354
x_cumulator_1[j] = x
355355
for k in axes(d_cumulator_1, 1)
356356
d_cumulator_1[k, j] = Base.Cartesian.@ncall(
357-
$N, +, i -> grad_i * d_cumulator_i[k, j]
357+
$N,
358+
+,
359+
i -> grad_i * d_cumulator_i[k, j] # COV_EXCL_LINE
358360
)
359361
end
360-
end
362+
end # COV_EXCL_LINE
361363
return ResultOk2(x_cumulator_1, d_cumulator_1, true)
362364
end
363365
end

0 commit comments

Comments
 (0)