• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TuringLang / AbstractPPL.jl / 16324639273

16 Jul 2025 04:09PM UTC coverage: 86.284% (+2.7%) from 83.562%
16324639273

push

github

web-flow
Move `hasvalue` and `getvalue` from DynamicPPL; implement extra Distributions-based methods (#125)

* Move hasvalue and getvalue to AbstractPPL; reimplement

* Add hasvalue for (some) distributions

* Bump min Julia to 1.10

* Make hasvalue and getvalue use the most specific value

* Specify getvalue semantics in docstring

* Simplify logic (can rely on normalisation)

* Add tests for composition of head/tail and init/last

* Finish implementing distributions methods

* Document

* Fix LinearAlgebra version bound

* Try to fix documentation for extension (why is this so complicated...)

* Fix extension documentation

* Implement fallback {has,get}value methods for NamedTuple + Distribution

* Fix wrong way round composition, add more tests

* Update src/hasvalue.jl

Co-authored-by: Markus Hauru <markus@mhauru.org>

* Update HISTORY.md

Co-authored-by: Markus Hauru <markus@mhauru.org>

* Minor bump

* Fix test (forgot to push this...)

* Add extra example for getvalue

* Tweak error message when value not found

* Format (?!)

* Fix doctests

* Add a docstring to the extension

* Add tests for colons

---------

Co-authored-by: Markus Hauru <markus@mhauru.org>

111 of 130 new or added lines in 3 files covered. (85.38%)

346 of 401 relevant lines covered (86.28%)

360.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

76.92
/ext/AbstractPPLDistributionsExt.jl


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc