targets
agent_cover.instrumentation.agents.targets
This module defines the targets for instrumenting agent classes.
It specifies the modules, classes, and methods that AgentCover should instrument to track agent execution.
Attributes
STRATEGY_ASYNC = 'async'
module-attribute
Constant for asynchronous execution strategy.
STRATEGY_ASYNC_GEN = 'async_gen'
module-attribute
Constant for asynchronous generator execution strategy.
STRATEGY_SYNC = 'sync'
module-attribute
Constant for synchronous execution strategy.
STRATEGY_SYNC_GEN = 'sync_gen'
module-attribute
Constant for synchronous generator execution strategy.
Functions
get_agent_targets()
Returns the list of supported agent targets.
This function provides access to the list of agent targets that AgentCover will instrument.
Returns:
| Type | Description |
|---|---|
TargetList
|
A list of dictionaries, where each dictionary represents an |
TargetList
|
agent target. |