Testing helpers for compiled-transition runtime evidence.
testing.transitions
| Name | Type | Default | Description |
|---|---|---|---|
type
|
|
— | |
qualified_name
|
|
— | |
element_type
|
|
— | |
description
|
|
— | |
source_file
|
|
— | |
line_number
|
|
— | |
is_autodoc
|
|
— | |
autodoc_element
|
|
— | |
_autodoc_template
|
|
— | |
_autodoc_url_path
|
|
— | |
_autodoc_page_type
|
|
— | |
title
|
|
— | |
doc_content_hash
|
|
— |
Symbols on this page
One debug response correlated to compiled application transitions.
Observed runtime evidence and explicitly expected gaps.
Read compiled transition evidence from one debug response.
Report observed and explicitly untested transition evidence.
Expected values are caller declarations. Chirp does not infer that a static route has been behaviorally exercised…
TransitionObservation
class
One debug response correlated to compiled application transitions.
TransitionCoverage
class
Observed runtime evidence and explicitly expected gaps.
transition_observation
function
def transition_observation(response: TraceResponse) -> TransitionObservation
Read compiled transition evidence from one debug response.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
response
|
TraceResponse
|
— |
transition_coverage
function
def transition_coverage(responses: Iterable[TraceResponse] | Mapping[Any, TraceResponse], *, expected_modes: Iterable[str] = (), expected_transition_ids: Iterable[str] = ()) -> TransitionCoverage
Report observed and explicitly untested transition evidence.
Expected values are caller declarations. Chirp does not infer that a static route has been behaviorally exercised in every browser mode.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
responses
|
Iterable[TraceResponse] | Mapping[Any, TraceResponse]
|
— | |
expected_modes
|
Iterable[str]
|
()
|
|
expected_transition_ids
|
Iterable[str]
|
()
|
View source · /home/runner/work/chirp/chirp/site/../src/chirp/testing/transitions.py:1