gaurav-arya / StochasticAD.jl

Research package for automatic differentiation of programs containing discrete randomness.
MIT License
198 stars 16 forks source link

Test backend interface and fix discovered issues #59

Closed gaurav-arya closed 1 year ago

gaurav-arya commented 1 year ago

This doesn't attempt to explicitly document the backend interface, which is still a bit implicitly defined, but it adds tests of the expected behaviour of the interface.

codecov-commenter commented 1 year ago

Codecov Report

Base: 86.00% // Head: 88.47% // Increases project coverage by +2.46% :tada:

Coverage data is based on head (750a2b6) compared to base (dda6d2e). Patch coverage: 100.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #59 +/- ## ========================================== + Coverage 86.00% 88.47% +2.46% ========================================== Files 9 9 Lines 443 451 +8 ========================================== + Hits 381 399 +18 + Misses 62 52 -10 ``` | [Impacted Files](https://codecov.io/gh/gaurav-arya/StochasticAD.jl/pull/59?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Gaurav+Arya) | Coverage Δ | | |---|---|---| | [src/backends/dict.jl](https://codecov.io/gh/gaurav-arya/StochasticAD.jl/pull/59?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Gaurav+Arya#diff-c3JjL2JhY2tlbmRzL2RpY3Quamw=) | `88.46% <100.00%> (+11.86%)` | :arrow_up: | | [src/backends/pruned.jl](https://codecov.io/gh/gaurav-arya/StochasticAD.jl/pull/59?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Gaurav+Arya#diff-c3JjL2JhY2tlbmRzL3BydW5lZC5qbA==) | `90.00% <100.00%> (+1.86%)` | :arrow_up: | | [src/backends/pruned\_aggressive.jl](https://codecov.io/gh/gaurav-arya/StochasticAD.jl/pull/59?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Gaurav+Arya#diff-c3JjL2JhY2tlbmRzL3BydW5lZF9hZ2dyZXNzaXZlLmps) | `90.74% <100.00%> (+7.72%)` | :arrow_up: | | [src/finite\_infinitesimals.jl](https://codecov.io/gh/gaurav-arya/StochasticAD.jl/pull/59?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Gaurav+Arya#diff-c3JjL2Zpbml0ZV9pbmZpbml0ZXNpbWFscy5qbA==) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Gaurav+Arya). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Gaurav+Arya)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.