Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Mar 15, 2024
1 parent 267b390 commit 13a3484
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/QCQP/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,20 @@ end

MOI.add_variable(model::Optimizer) = MOI.add_variable(model.model)

function MOI.set(model::Optimizer, attr::MOI.AbstractVariableAttribute, vi::MOI.VariableIndex, value)
function MOI.set(

Check warning on line 59 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L59

Added line #L59 was not covered by tests
model::Optimizer,
attr::MOI.AbstractVariableAttribute,
vi::MOI.VariableIndex,
value,
)
return MOI.set(model.model, attr, vi, value)

Check warning on line 65 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L65

Added line #L65 was not covered by tests
end

function MOI.get(model::Optimizer, attr::MOI.AbstractVariableAttribute, vi::MOI.VariableIndex)
function MOI.get(

Check warning on line 68 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L68

Added line #L68 was not covered by tests
model::Optimizer,
attr::MOI.AbstractVariableAttribute,
vi::MOI.VariableIndex,
)
return MOI.get(model.model, attr, vi)

Check warning on line 73 in src/QCQP/MOI_wrapper.jl

View check run for this annotation

Codecov / codecov/patch

src/QCQP/MOI_wrapper.jl#L73

Added line #L73 was not covered by tests
end

Expand Down

0 comments on commit 13a3484

Please sign in to comment.