Skip to content

tests: Add test for integers in derived equations - #380

Open
mhovd wants to merge 1 commit into
mainfrom
dsl-tests-integer
Open

mhovd wants to merge 1 commit into
mainfrom
dsl-tests-integer

Conversation

@mhovd

@mhovd mhovd commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

This has been fixed before, just covering the model surface too

This has been fixed before, just covering the model surface too
Copilot AI balanced review requested due to automatic review settings October 2, 2026 09:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Truncating comparisons can let the new regression tests pass without exercising the derivative.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds regression coverage for whole-number derived values used in ODE derivatives and conditionals.

Changes:

  • Adds multi-time prediction helper.
  • Tests direct and conditional derivative scaling.
File Description
tests/​dsl_constant_derived.rs Adds derived-equation regression tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +44 to +48
Ok(predictions
.predictions()
.iter()
.map(|prediction| prediction.prediction())
.collect())
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.75%. Comparing base (a2203f2) to head (cb48936).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #380   +/-   ##
=======================================
  Coverage   84.75%   84.75%           
=======================================
  Files          78       78           
  Lines       35818    35818           
=======================================
  Hits        30356    30356           
  Misses       5462     5462           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Projectpharmsol
Branchdsl-tests-integer
Testbedmhovd-pgx

⚠️ WARNING: Truncated view!

The full continuous benchmarking report exceeds the maximum length allowed on this platform.

🚨 6 Alerts

🐰 View full continuous benchmarking report in Bencher

This branch has not been deployed

No deployments
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.

3 participants