Skip to content

Add unit tests to improve coverage#88

Open
zhihan wants to merge 2 commits into
maltezfaria:mainfrom
zhihan:main
Open

Add unit tests to improve coverage#88
zhihan wants to merge 2 commits into
maltezfaria:mainfrom
zhihan:main

Conversation

@zhihan

@zhihan zhihan commented Jun 10, 2026

Copy link
Copy Markdown

Related issues

Closes #

Checklist

  • I am following the contributing guidelines
  • [X ] Tests are passing
  • Lint workflow is passing
  • Docs were updated and workflow is passing

zhih and others added 2 commits June 10, 2026 13:25
- Test smooth_heaviside and smooth_delta edge behavior
- Test trapezoidal_coefficients for 2D and 3D
- Test _ensure_boundary_conditions
- Test geometric shapes: circle, rectangle, sphere, star, dumbbell, zalesak_disk
- Test set operations: union, intersect, complement, setdiff
- Test volume and perimeter against analytic circle/sphere
- Test gradient, normal, hessian accuracy on quadratic field
- Test curvature on circle (~1/R)
- Test grad_norm on signed distance field
Coverage for src/levelset.jl improves from ~0% to 85.7%
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.25%. Comparing base (e3c2767) to head (7ebc622).

❗ There is a different number of reports uploaded between BASE (e3c2767) and HEAD (7ebc622). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (e3c2767) HEAD (7ebc622)
2 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
- Coverage   89.71%   80.25%   -9.46%     
==========================================
  Files          16       16              
  Lines        1702     1697       -5     
==========================================
- Hits         1527     1362     -165     
- Misses        175      335     +160     

☔ View full report in Codecov by Harness.
📢 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.

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