| t/typemap/error.xsi | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 5 | 5 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | n/a | ||
| pod | n/a | ||
| total | 5 | 5 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | MODULE = MyTest::Typemap PACKAGE = MyTest::Error | ||||||
| 2 | PROTOTYPES: DISABLE | ||||||
| 3 | |||||||
| 4 | std::error_code operation_canceled () { | ||||||
| 5 | 2 | RETVAL = make_error_code(std::errc::operation_canceled); | |||||
| 6 | 1 | } | |||||
| 7 | |||||||
| 8 | ErrorCode operation_chain_canceled () { | ||||||
| 9 | 8 | ErrorCode orig(make_error_code(std::errc::operation_canceled)); | |||||
| 10 | 8 | RETVAL = ErrorCode(make_error_code(std::errc::connection_aborted), orig); | |||||
| 11 | 4 | } |