Skip to content

Test/coverage#5

Merged
uqio merged 2 commits intomainfrom
test/coverage
Apr 18, 2026
Merged

Test/coverage#5
uqio merged 2 commits intomainfrom
test/coverage

Conversation

@uqio
Copy link
Copy Markdown
Collaborator

@uqio uqio commented Apr 18, 2026

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@al8n al8n requested a review from Copilot April 18, 2026 01:26
@uqio uqio merged commit 93012b6 into main Apr 18, 2026
15 checks passed
@uqio uqio deleted the test/coverage branch April 18, 2026 01:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves test coverage for the soundevents crate (including tarpaulin-targeted paths) and adjusts CI scheduling for periodic runs.

Changes:

  • Add unit tests covering top_k_from_scores, builder/accessor APIs, error paths, and output validation helpers.
  • Add feature-gated integration-style tests using the bundled tiny model to validate classifier behavior end-to-end.
  • Update the GitHub Actions schedule trigger to run monthly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
soundevents/src/lib.rs Adds a broad set of unit and feature-gated tests to exercise more code paths and improve coverage.
.github/workflows/ci.yml Updates the scheduled CI cadence (cron) for periodic workflow runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
- '**.txt'
workflow_dispatch:
schedule: [cron: "0 1 */30 * *"]
schedule:
Comment thread soundevents/src/lib.rs
Comment on lines +1247 to +1251
fn classifier_from_file_rejects_missing_file() {
match Classifier::from_file("definitely/does/not/exist.onnx") {
Err(ClassifierError::Ort(_)) => {}
_ => panic!("expected Ort error"),
}
Comment thread soundevents/src/lib.rs
Comment on lines +1255 to +1262
fn classifier_new_with_custom_optimization_surfaces_ort_error() {
match Classifier::new(
Options::new("definitely/does/not/exist.onnx")
.with_optimization_level(GraphOptimizationLevel::Level3),
) {
Err(ClassifierError::Ort(_)) => {}
_ => panic!("expected Ort error"),
}
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.

2 participants