Skip to content

test: annotate tests with covered SHIP test-spec cases#102

Open
andig wants to merge 1 commit into
enbility:devfrom
andig:docs/testspec-coverage-comments
Open

test: annotate tests with covered SHIP test-spec cases#102
andig wants to merge 1 commit into
enbility:devfrom
andig:docs/testspec-coverage-comments

Conversation

@andig

@andig andig commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Makes SHIP High-Level Test Specification (V1.0.0) coverage explicit: adds a one-line // TC_SHIP_... reference comment to each existing test that already exercises a conformant test-case requirement. Comment-only — no production code, test logic, or assertions changed; ./ship ./cert ./hub stay green.

Contributes to #95 (SHIP TestSpecification compliance) by making the "already covered" cases traceable in-code.

Annotated

TC Test
AM_001 ship/hs_access_test.go Test_Request
CMI_002 ship/hs_init_client_test.go Test_ClientWait_InvalidMsgType
CMI_003 ship/hs_init_server_test.go Test_ServerWait_Timeout
CMI_004 ship/hs_init_client_test.go Test_ClientWait_Timeout
CMI_006 ship/hs_init_client_test.go Test_ClientWait_InvalidData
HELLO_001-004 ship/hs_hello_server_test.go Test_ReadyListen_Ok/Prolongation/Timeout/Ignore
MSG_001/002 ship/connection_messaging_coverage_test.go Test_HandleIncomingWebsocketMessage_EdgeCases
PIN_001 ship/hs_pin_test.go Test_CheckListen_None
PROT_001 ship/hs_prot_server_test.go Test_ListenProposal
PROT_002 ship/hs_prot_client_test.go Test_ListenChoice
ROLE_001 ship/hs_init_server_test.go Test_Start
ROLE_002 ship/hs_init_client_test.go Test_Start
ROLE_003 hub/hub_connections_client_coverage_test.go Test_KeepThisConnection_DirectTest
SEC_001/002 cert/cert_test.go Test_SkiFromCertificate_SKIMismatch

Notes: SEC_001/002 both reduce to the SKI≠SHA-1(pubkey) rejection in SkiFromCertificate (stacked on the one mismatch test). AM_001's covering test drives handleAccessMethodsRequest (which sets accessMethods.id = own SHIP id) but asserts a reply is sent rather than the exact id value.

🤖 Generated with Claude Code

Add reference comments to the existing tests that already cover
conformant SHIP High-Level Test Specification (V1.0.0) requirements, so
coverage is explicit and traceable. Comment-only; no behavior or
assertion changes.

Covers: AM_001, CMI_002/003/004/006, HELLO_001-004, MSG_001/002,
PIN_001, PROT_001/002, ROLE_001/002/003, SEC_001/002.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant