Skip to content

Commit

Permalink
exclude lines from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Sep 9, 2024
1 parent 3ea3db0 commit ea79f3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/operations/arithmetic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
# left-division methods to avoid a stack overflow with the default behavior
# (there exist more precise approaches but are currently not implemented here)
\(M1::IntervalMatrix, M2::IntervalMatrix) = IntervalMatrix(M1.mat \ M2.mat)
# COV_EXCL_START
for T in (:AbstractMatrix, :Diagonal, :(Union{UpperTriangular,LowerTriangular}),
:(Union{UnitUpperTriangular,UnitLowerTriangular}), :SymTridiagonal, :Bidiagonal,
:(LinearAlgebra.HermOrSym), :(LinearAlgebra.AdjOrTrans{<:Any,<:Bidiagonal}))
Expand All @@ -41,6 +42,7 @@ for T in (:AbstractMatrix, :Diagonal, :(Union{UpperTriangular,LowerTriangular}),
\(M1::$T, M2::IntervalMatrix) = IntervalMatrix(M1 \ M2.mat)
end
end
# COV_EXCL_STOP

"""
square(A::IntervalMatrix)
Expand Down
2 changes: 1 addition & 1 deletion src/operations/mult.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Sets the algorithm used to perform matrix multiplication with interval matrices.
function set_multiplication_mode(multype)
multype in (:fast, :slow) || throw(ArgumentError("$multype is not a valid input"))

@static if vIA >= v"0.22"
@static if vIA >= v"0.22" # COV_EXCL_LINE
multype == :fast && throw(ArgumentError("$multype is not supported anymore"))
end

Expand Down

0 comments on commit ea79f3b

Please sign in to comment.