MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / TEST_CASE

Function TEST_CASE

test/native/instrumentTest.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "instrument.h"
12
13TEST_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
26TEST_CASE(Instrument_test_updateCurrentFrame_newEntry) {
27 int32_t current_frame_old = -1;

Callers

nothing calls this directly

Calls 4

addTargetFunction · 0.85
findLatencyFunction · 0.85
matchesPatternFunction · 0.85
messageMethod · 0.80

Tested by

no test coverage detected