Skip to content

Commit 92a7cc8

Browse files
coverage
1 parent 4dcaa5e commit 92a7cc8

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/Infeasibility/analyze.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ function _reverse_index_map(index_map::MOI.IndexMap)
7878
return Dict{MOI.ConstraintIndex,MOI.ConstraintIndex}(
7979
v => k for (k, v) in index_map.con_map
8080
)
81-
for (k, v) in index_map.con_map
82-
ret[v] = k
83-
end
84-
return ret
8581
end
8682

8783
"""

test/test_Infeasibility.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,16 @@ function test_native_iis_fallback_warning()
987987
return
988988
end
989989

990+
function test_coverage()
991+
try
992+
error("Some other error")
993+
catch err
994+
_error_handler(err)
995+
end
996+
return
997+
end
998+
999+
9901000
end # module TestInfeasibility
9911001

9921002
TestInfeasibility.runtests()

0 commit comments

Comments
 (0)