Skip to content

Commit f544093

Browse files
committed
test: call info2debugstr function for coverage
1 parent ebb1be0 commit f544093

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/test_predictive_control.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ end
8282
mpc4 = LinMPC(model2)
8383
preparestate!(mpc4, [0])
8484
moveinput!(mpc4, [0]) [0.0]
85+
@test_nowarn ModelPredictiveControl.info2debugstr(info)
8586

8687
@test_throws DimensionMismatch moveinput!(mpc1, [0,0,0])
8788
@test_throws DimensionMismatch moveinput!(mpc1, [0], [0,0])
@@ -407,6 +408,7 @@ end
407408
mpc4 = ExplicitMPC(model2)
408409
preparestate!(mpc4, [0])
409410
moveinput!(mpc4, [0]) [0.0]
411+
@test_nowarn ModelPredictiveControl.info2debugstr(info)
410412
end
411413

412414

@@ -633,6 +635,7 @@ end
633635
nonlinmodel2.h!(y, Float32[0,0], Float32[0], Float32[])
634636
preparestate!(nmpc7, [0], [0])
635637
@test moveinput!(nmpc7, [0], [0]) [0.0]
638+
@test_nowarn ModelPredictiveControl.info2debugstr(info)
636639
end
637640

638641
@testset "NonLinMPC step disturbance rejection" begin

test/test_state_estim.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ end
973973
info = getinfo(mhe5)
974974
@test info[:x̂] x̂ atol=1e-9
975975
@test info[:Ŷ][end-1:end] [50, 30] atol=1e-9
976+
@test_nowarn ModelPredictiveControl.info2debugstr(info)
976977
end
977978

978979
@testset "MovingHorizonEstimator fallbacks for arrival covariance estimation" begin

0 commit comments

Comments
 (0)