Namespace test_api_endpoints¶
Namespace List > test_api_endpoints
Public Functions¶
| Type | Name |
|---|---|
| test_api_endpoints_inject_unexpected_cf () Validate unexpected CF injection handling. |
|
| test_api_endpoints_inject_wrong_sn () Validate wrong sequence number handling. |
|
| test_api_endpoints_return_codes () Validate return codes for overflow and in-progress sends. |
|
| test_api_endpoints_smoke () Verify basic API calls and protocol result handling. |
|
| test_api_endpoints_smoke_multi_frame () Verify multi-frame send/receive path. |
|
| test_api_endpoints_validation_errors () Validate input checks and error signaling in API. |
Protected Functions¶
| Type | Name |
|---|---|
| _cf_frame (sn sn, payload payload) Build a Consecutive Frame (CF) with a given sequence number. |
|
| _ff_frame (payload_size payload_size, payload payload) Build a First Frame (FF) for an ISO-TP multi-frame transfer. |
|
| _make_payload (size size) Build a deterministic payload of a given size. |
|
| _poll_until_receive (link link, payload_size payload_size, steps steps, advance_ms advance_ms=0) Poll the link until a response is received or steps are exhausted. |
Public Functions Documentation¶
function test_api_endpoints_inject_unexpected_cf¶
Validate unexpected CF injection handling.
test_api_endpoints::test_api_endpoints_inject_unexpected_cf ()
function test_api_endpoints_inject_wrong_sn¶
Validate wrong sequence number handling.
test_api_endpoints::test_api_endpoints_inject_wrong_sn ()
function test_api_endpoints_return_codes¶
Validate return codes for overflow and in-progress sends.
test_api_endpoints::test_api_endpoints_return_codes ()
function test_api_endpoints_smoke¶
Verify basic API calls and protocol result handling.
test_api_endpoints::test_api_endpoints_smoke ()
function test_api_endpoints_smoke_multi_frame¶
Verify multi-frame send/receive path.
test_api_endpoints::test_api_endpoints_smoke_multi_frame ()
function test_api_endpoints_validation_errors¶
Validate input checks and error signaling in API.
test_api_endpoints::test_api_endpoints_validation_errors ()
Protected Functions Documentation¶
function _cf_frame¶
Build a Consecutive Frame (CF) with a given sequence number.
test_api_endpoints::_cf_frame (
sn sn,
payload payload
)
Parameters:
snSequence number (0-15).payloadPayload bytes to embed in CF.
Returns:
CAN frame bytes representing the CF.
function _ff_frame¶
Build a First Frame (FF) for an ISO-TP multi-frame transfer.
test_api_endpoints::_ff_frame (
payload_size payload_size,
payload payload
)
Parameters:
payload_sizeTotal payload size.payloadPayload bytes to embed in FF.
Returns:
CAN frame bytes representing the FF.
function _make_payload¶
Build a deterministic payload of a given size.
test_api_endpoints::_make_payload (
size size
)
Parameters:
sizeNumber of bytes to generate.
Returns:
Payload bytes.
function _poll_until_receive¶
Poll the link until a response is received or steps are exhausted.
test_api_endpoints::_poll_until_receive (
link link,
payload_size payload_size,
steps steps,
advance_ms advance_ms=0
)
Parameters:
linkISO-TP link handle.payload_sizeExpected payload size for receive.stepsMaximum number of poll iterations.advance_msOptional time advance per step in milliseconds.
Returns:
Received payload bytes or None when nothing is received.
The documentation for this class was generated from the following file tests/integration/test_api_endpoints.py