| 11 | #include "instrument.h" |
| 12 | |
| 13 | TEST_CASE(Instrument_test_updateCurrentFrame_start) { |
| 14 | int32_t current_frame_old = -1; |
| 15 | int32_t current_frame_new = -1; |
| 16 | u16 relocation_table[3]; |
| 17 | relocation_table[2] = 4; |
| 18 | u16 offset_delta_old = 2; |
| 19 | |
| 20 | u16 offset_delta_new = BytecodeRewriter::updateCurrentFrame(current_frame_old, current_frame_new, offset_delta_old, relocation_table); |
| 21 | CHECK_EQ(current_frame_old, 2); |
| 22 | CHECK_EQ(current_frame_new, 6); |
| 23 | CHECK_EQ(offset_delta_new, 6); |
| 24 | } |
| 25 | |
| 26 | TEST_CASE(Instrument_test_updateCurrentFrame_newEntry) { |
| 27 | int32_t current_frame_old = -1; |
nothing calls this directly
no test coverage detected