Skip to content
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

Simplify tests of views and subarrays #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tmigot
Copy link
Member

@tmigot tmigot commented Jun 22, 2021

Two simplifications:

  • Focus on testing the allocated vector in NLPModels API, e.g. in grad(nlp, x, gx) we only test if it works correctly when gx is a view, and not when x is.
  • Instead of testing several subsets for the view, we test only one.

I added hess_coord!, which wasn't tested before.

@codecov
Copy link

codecov bot commented Jun 22, 2021

Codecov Report

Merging #17 (9210bee) into main (a9b8a60) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
- Coverage   99.45%   99.42%   -0.03%     
==========================================
  Files          24       24              
  Lines        2367     2280      -87     
==========================================
- Hits         2354     2267      -87     
  Misses         13       13              
Impacted Files Coverage Δ
src/nlp/view-subarray.jl 100.00% <100.00%> (ø)
src/nls/view-subarray.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9b8a60...9210bee. Read the comment docs.

@github-actions
Copy link
Contributor

Package name latest stable
ADNLPModels.jl
AmplNLReader.jl
CUTEst.jl
CaNNOLeS.jl
DCI.jl
JSOSolvers.jl
LLSModels.jl
NLPModelsIpopt.jl
NLPModelsJuMP.jl
Percival.jl
QuadraticModels.jl
SolverBenchmark.jl
SolverTools.jl

@github-actions
Copy link
Contributor

Package name latest stable
ADNLPModels.jl
AmplNLReader.jl
CUTEst.jl
CaNNOLeS.jl
DCI.jl
JSOSolvers.jl
LLSModels.jl
NLPModelsIpopt.jl
NLPModelsJuMP.jl
Percival.jl
QuadraticModels.jl
SolverBenchmark.jl
SolverTools.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant