Skip to content

[Test] update version_added #2691

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/Test/test_attribute.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@
return
end

version_added(::typeof(test_attribute_ObjectiveLimit)) = v"1.20.0"

Check warning on line 229 in src/Test/test_attribute.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_attribute.jl#L229

Added line #L229 was not covered by tests

function test_attribute_SolutionLimit(model::MOI.AbstractOptimizer, ::Config)
@requires MOI.supports(model, MOI.SolutionLimit())
# Get the current value to restore it at the end of the test
Expand All @@ -252,6 +254,8 @@
return
end

version_added(::typeof(test_attribute_SolutionLimit)) = v"1.21.0"

Check warning on line 257 in src/Test/test_attribute.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_attribute.jl#L257

Added line #L257 was not covered by tests

function test_attribute_NodeLimit(model::MOI.AbstractOptimizer, ::Config)
@requires MOI.supports(model, MOI.NodeLimit())
# Get the current value to restore it at the end of the test
Expand All @@ -278,6 +282,8 @@
return
end

version_added(::typeof(test_attribute_NodeLimit)) = v"1.32.0"

Check warning on line 285 in src/Test/test_attribute.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_attribute.jl#L285

Added line #L285 was not covered by tests

"""
test_attribute_AbsoluteGapTolerance(model::MOI.AbstractOptimizer, config::Config)

Expand Down Expand Up @@ -311,6 +317,8 @@
return
end

version_added(::typeof(test_attribute_AbsoluteGapTolerance)) = v"1.7.0"

Check warning on line 320 in src/Test/test_attribute.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_attribute.jl#L320

Added line #L320 was not covered by tests

"""
test_attribute_RelativeGapTolerance(model::MOI.AbstractOptimizer, config::Config)

Expand Down Expand Up @@ -344,6 +352,8 @@
return
end

version_added(::typeof(test_attribute_RelativeGapTolerance)) = v"1.7.0"

Check warning on line 355 in src/Test/test_attribute.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_attribute.jl#L355

Added line #L355 was not covered by tests

"""
test_attribute_after_empty(model::MOI.AbstractOptimizer, config::Config)

Expand Down Expand Up @@ -381,3 +391,5 @@
@test MOI.get(model, MOI.NumberOfConstraints{F,S}()) == Int64(0)
return
end

version_added(::typeof(test_attribute_unsupported_constraint)) = v"1.9.0"

Check warning on line 395 in src/Test/test_attribute.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_attribute.jl#L395

Added line #L395 was not covered by tests
12 changes: 12 additions & 0 deletions src/Test/test_conic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5017,6 +5017,14 @@
return
end

function version_added(

Check warning on line 5020 in src/Test/test_conic.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_conic.jl#L5020

Added line #L5020 was not covered by tests
::typeof(
test_conic_ScaledPositiveSemidefiniteConeTriangle_VectorAffineFunction,
),
)
return v"1.16.0"

Check warning on line 5025 in src/Test/test_conic.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_conic.jl#L5025

Added line #L5025 was not covered by tests
end

"""
Problem SDP1 - sdo1 from MOSEK docs
From Mosek.jl/test/mathprogtestextra.jl, under license:
Expand Down Expand Up @@ -5859,6 +5867,10 @@
return
end

function version_added(::typeof(test_conic_PositiveSemidefiniteConeTriangle_4))
return v"1.35.0"

Check warning on line 5871 in src/Test/test_conic.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_conic.jl#L5870-L5871

Added lines #L5870 - L5871 were not covered by tests
end

"""
_test_det_cone_helper_ellipsoid(
model::MOI.ModelLike,
Expand Down
20 changes: 20 additions & 0 deletions src/Test/test_cpsat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
return
end

version_added(::typeof(test_cpsat_AllDifferent)) = v"1.4.0"

Check warning on line 51 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L51

Added line #L51 was not covered by tests

"""
test_cpsat_ReifiedAllDifferent(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -153,6 +155,8 @@
return
end

version_added(::typeof(test_cpsat_CountDistinct)) = v"1.4.0"

Check warning on line 158 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L158

Added line #L158 was not covered by tests

"""
test_cpsat_CountBelongs(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -200,6 +204,8 @@
return
end

version_added(::typeof(test_cpsat_CountBelongs)) = v"1.4.0"

Check warning on line 207 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L207

Added line #L207 was not covered by tests

"""
test_cpsat_CountAtLeast(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -251,6 +257,8 @@
return
end

version_added(::typeof(test_cpsat_CountAtLeast)) = v"1.4.0"

Check warning on line 260 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L260

Added line #L260 was not covered by tests

"""
test_cpsat_CountGreaterThan(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -302,6 +310,8 @@
return
end

version_added(::typeof(test_cpsat_CountGreaterThan)) = v"1.4.0"

Check warning on line 313 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L313

Added line #L313 was not covered by tests

"""
test_cpsat_BinPacking(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -354,6 +364,8 @@
return
end

version_added(::typeof(test_cpsat_BinPacking)) = v"1.4.0"

Check warning on line 367 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L367

Added line #L367 was not covered by tests

"""
test_cpsat_Cumulative(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -415,6 +427,8 @@
return
end

version_added(::typeof(test_cpsat_Cumulative)) = v"1.4.0"

Check warning on line 430 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L430

Added line #L430 was not covered by tests

"""
test_cpsat_Table(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -453,6 +467,8 @@
return
end

version_added(::typeof(test_cpsat_Table)) = v"1.4.0"

Check warning on line 470 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L470

Added line #L470 was not covered by tests

"""
test_cpsat_Circuit(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -486,6 +502,8 @@
return
end

version_added(::typeof(test_cpsat_Circuit)) = v"1.4.0"

Check warning on line 505 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L505

Added line #L505 was not covered by tests

"""
test_cpsat_Path(model::MOI.ModelLike, config::Config)

Expand Down Expand Up @@ -546,3 +564,5 @@
)
return
end

version_added(::typeof(test_cpsat_Path)) = v"1.4.0"

Check warning on line 568 in src/Test/test_cpsat.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_cpsat.jl#L568

Added line #L568 was not covered by tests
4 changes: 2 additions & 2 deletions src/Test/test_linear.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4158,7 +4158,7 @@
return
end

version_added(::typeof(test_linear_HyperRectangle_VectorOfVariables)) = v"1.7.0"
version_added(::typeof(test_linear_HyperRectangle_VectorOfVariables)) = v"1.8.0"

Check warning on line 4161 in src/Test/test_linear.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_linear.jl#L4161

Added line #L4161 was not covered by tests

"""
test_linear_HyperRectangle_VectorAffinneFunction(
Expand Down Expand Up @@ -4209,5 +4209,5 @@
function version_added(
::typeof(test_linear_HyperRectangle_VectorAffineFunction),
)
return v"1.7.0"
return v"1.8.0"
end
10 changes: 10 additions & 0 deletions src/Test/test_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,8 @@
return
end

version_added(::typeof(test_model_ListOfVariablesWithAttributeSet)) = v"1.22.0"

Check warning on line 1208 in src/Test/test_model.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_model.jl#L1208

Added line #L1208 was not covered by tests

function test_model_ListOfConstraintsWithAttributeSet(
model::MOI.ModelLike,
::Config{T},
Expand All @@ -1220,12 +1222,18 @@
return
end

function version_added(::typeof(test_model_ListOfConstraintsWithAttributeSet))
return v"1.22.0"

Check warning on line 1226 in src/Test/test_model.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_model.jl#L1225-L1226

Added lines #L1225 - L1226 were not covered by tests
end

function test_model_show(model::MOI.ModelLike, ::Config{T}) where {T}
# We don't enforce any particular output.
@test sprint(show, model) isa String
return
end

version_added(::typeof(test_model_show)) = v"1.31.0"

Check warning on line 1235 in src/Test/test_model.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_model.jl#L1235

Added line #L1235 was not covered by tests

function test_model_add_constrained_variable_tuple(
model::MOI.ModelLike,
::Config{T},
Expand All @@ -1242,3 +1250,5 @@
@test MOI.get(model, MOI.ConstraintSet(), c_u) == set[2]
return
end

version_added(::typeof(test_model_add_constrained_variable_tuple)) = v"1.34.0"

Check warning on line 1254 in src/Test/test_model.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_model.jl#L1254

Added line #L1254 was not covered by tests
16 changes: 16 additions & 0 deletions src/Test/test_modification.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,12 @@
return
end

function version_added(

Check warning on line 1043 in src/Test/test_modification.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_modification.jl#L1043

Added line #L1043 was not covered by tests
::typeof(test_modification_objective_scalarquadraticcoefficientchange),
)
return v"1.21.0"

Check warning on line 1046 in src/Test/test_modification.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_modification.jl#L1046

Added line #L1046 was not covered by tests
end

function test_modification_constraint_scalarquadraticcoefficientchange(
model::MOI.ModelLike,
config::Config{T},
Expand All @@ -1062,6 +1068,12 @@
return
end

function version_added(

Check warning on line 1071 in src/Test/test_modification.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_modification.jl#L1071

Added line #L1071 was not covered by tests
::typeof(test_modification_constraint_scalarquadraticcoefficientchange),
)
return v"1.21.0"

Check warning on line 1074 in src/Test/test_modification.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_modification.jl#L1074

Added line #L1074 was not covered by tests
end

function test_modification_mathoptinterface_issue_2452(
model::MOI.ModelLike,
config::Config{T},
Expand All @@ -1076,3 +1088,7 @@
@test MOI.get(model, MOI.ConstraintSet(), c) == MOI.EqualTo(T(2))
return
end

function version_added(::typeof(test_modification_mathoptinterface_issue_2452))
return v"1.28.0"

Check warning on line 1093 in src/Test/test_modification.jl

View check run for this annotation

Codecov / codecov/patch

src/Test/test_modification.jl#L1092-L1093

Added lines #L1092 - L1093 were not covered by tests
end
Loading
Loading