Skip to main content

Module context

Module context 

Source
Expand description

Context tracking utilities for analysing traversal stacks.

Structs§

ContextEntry
Records contextual information for traversal decisions.

Enums§

ContextKind
Categorizes a frame within the traversal stack.

Functions§

in_test_like_context
Returns true when any entry in the stack participates in a test-like context.
in_test_like_context_with
Returns true when any entry in the stack participates in a test-like context, including those provided via the additional attribute paths.
is_in_main_fn
Detects whether the current traversal stack is inside a main function.
is_test_fn
Tests whether a slice of attributes marks an item as a test function.
is_test_fn_with
Tests whether a slice of attributes marks an item as a test function while honouring custom attribute paths.