Expand description
Context tracking utilities for analysing traversal stacks.
Structs§
- Context
Entry - Records contextual information for traversal decisions.
Enums§
- Context
Kind - Categorizes a frame within the traversal stack.
Functions§
- in_
test_ like_ context - Returns
truewhen any entry in the stack participates in a test-like context. - in_
test_ like_ context_ with - Returns
truewhen any entry in the stack participates in a test-like context, including those provided via theadditionalattribute paths. - is_
in_ main_ fn - Detects whether the current traversal stack is inside a
mainfunction. - 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.