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

satoren / y_ex / 7eed24bdcecbf7d15513dce2d288718fac0ad72e

21 Nov 2025 02:16AM UTC coverage: 95.447% (-1.1%) from 96.534%
7eed24bdcecbf7d15513dce2d288718fac0ad72e

push

github

web-flow
Add *_and_get functions that return values directly (#198)

* Add *_and_get functions that return values directly and update get functions

BREAKING CHANGES:
1. *_and_get functions now return values directly instead of {:ok, value} tuples
   - Modified insert_and_get, push_and_get in Yex.Array
   - Modified set_and_get in Yex.Map
   - Modified insert_and_get, insert_after_and_get, push_and_get in Yex.XmlElement
   - Modified insert_and_get, insert_after_and_get, push_and_get in Yex.XmlFragment
   - Changed error handling to raise exceptions instead of returning :error

2. Previously deprecated get functions are no longer deprecated
   - get/2 and get/3 now return values directly instead of {:ok, value} tuples
   - Updated in Yex.Array, Yex.Map, Yex.XmlElement, Yex.XmlFragment

New features:
- Added get_lazy/3 functions to all affected modules for lazy default value evaluation

Updates:
- Updated type specifications to return term() directly
- Updated all test files to match new API

* version up to 0.10.0

* fix

* fix doc and test

43 of 52 new or added lines in 5 files covered. (82.69%)

587 of 615 relevant lines covered (95.45%)

22.38 hits per line

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

95.31
/lib/shared_type/array.ex


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