move
move copied to clipboard
[Feature Request] Unit tests need stronger abort code support
As highlighted in #127, abort_code
annotation in unit tests is not super expressive. We should support
- Location (The module that gave the abort)
- More general major + sub status
For the location, suggested syntax:
#[test(abort_code = 0x42::M::2)]
// or
#[test(abort_code = 2, abort_location = 0x42::M)]
Note: annotation support is lacking for this right now
For status codes, suggested syntax:
#[test(status_code = "VECTOR_OPERATION_ERROR", sub_status = 1)]