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

Chia-Network / chia_rs / 10992093210

23 Sep 2024 10:07AM UTC coverage: 83.285% (-0.08%) from 83.367%
10992093210

push

github

web-flow
Switch to #[classmethod] for SpendBundle::py_aggregate (#678)

* switch to classmethod for py_aggregate

* import under cfg feature

* update stubs

* add test for derived class returning correctly

* change pystreamable macro to use classmethods instead of staticmethods

* fmt and clippy

* fix line ending format

* black test

* add tests for the streamable macro functions

* fix tests to actually test what we're expecting

* fix aggregate

* nonworking commit for arvid

* fixup

* add downcasting step to streamable classmethods that support it

* fix tests and remove duplicate imports

* add from_parent for OwnedSpendConditions and OwnedSpendBundleConditions

* fmt

* fix stubs and use ?

* pushing broken optional skip to work from laptop

* fix

* update all remaining streamable macros to use check and skip

* update stubs to reflect new Streamable

* use py as paramter instead of calling with_gil()

* Add NotImplemented error for unsupported from_parent() calls

* re-enable from_parent in SpendBundle

* make error messages struct specific

* fmt

* fix if statement for from_parent skip

* clippy fixes

* add from_parent skip to aggregate()

* clippy fix

* Remove final with_gil()

Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>

* fmt

---------

Co-authored-by: arvidn <arvid@libtorrent.org>
Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>

120 of 169 new or added lines in 10 files covered. (71.01%)

1 existing line in 1 file now uncovered.

12382 of 14867 relevant lines covered (83.29%)

632207.53 hits per line

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

71.47
/crates/chia-protocol/src/program.rs


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