Commit 3661c87
committed
feat: Add ZRTL test framework macros
Add test framework macros to help with ZRTL plugin development:
- #[zrtl_test] attribute macro for test functions (in zrtl_macros)
- zrtl_assert! macro with enhanced error messages
- zrtl_assert_eq! and zrtl_assert_ne! for equality checks
- zrtl_assert_some! and zrtl_assert_none! for Option types
- zrtl_assert_ok! and zrtl_assert_err! for Result types
All macros are exported from the zrtl prelude for easy access.
Test framework macros provide ZRTL-prefixed output with file:line info.
Completes the final task in INTEGRATION_PLAN.md - all integration
gaps are now addressed.1 parent 8918b9d commit 3661c87
6 files changed
Lines changed: 558 additions & 2 deletions
File tree
- docs
- sdk
- zrtl_macros/src
- zrtl
- src
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
0 commit comments