Skip to content

Simplify tests of views and subarrays#17

Open
tmigot wants to merge 1 commit intomainfrom
siplify-view-test
Open

Simplify tests of views and subarrays#17
tmigot wants to merge 1 commit intomainfrom
siplify-view-test

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

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.42%. Comparing base (a9b8a60) to head (9210bee).
⚠️ Report is 109 commits behind head on main.

Additional details and impacted files
@@            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              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@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

@tmigot tmigot force-pushed the siplify-view-test branch from 65d674b to 9210bee Compare July 10, 2021 05:17
@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