Skip to main content

patch_seq_test_set_name

Function patch_seq_test_set_name 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_test_set_name( stack: Stack, ) -> Stack
Expand description

Set the current test’s display name without touching any other state.

Used by the seqc test runner to reassert the word-level test name after the user’s test word has run, in case the user called test.init "friendly name" internally and overwrote the header. Unlike test.init, this does NOT clear failures, passes, or current_line.

Stack effect: ( ..a String – ..a )

§Safety

Stack must have a String (test name) on top.