Documentation
¶
Overview ¶
Package testselection validates and acknowledges language-neutral test selections at the Codefly runtime boundary.
Runtime plugins translate a validated selection to their native runner. The caller never supplies a command, regex, or framework-specific selector grammar. A scoped response must acknowledge the exact request so clients can fail closed when connected to a peer that does not implement typed selection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Acknowledge ¶
func Acknowledge(req *runtimev0.TestRequest, resp *runtimev0.TestResponse) error
Acknowledge records that a runtime applied the request's exact selection. Call this only after native selector translation succeeded. It deliberately refuses to manufacture a TestRun because the run metadata belongs to the runtime that executed the tests.
func Validate ¶
func Validate(selection *runtimev0.TestSelection) error
Validate rejects ambiguous or non-canonical selections before a runtime plugin attempts to render them for its native test runner.
func ValidateRequest ¶
func ValidateRequest(req *runtimev0.TestRequest) error
ValidateRequest enforces the typed-selection handshake. Unscoped requests remain valid, but a selection and its identity must always travel together.
func VerifyAcknowledgement ¶
func VerifyAcknowledgement(req *runtimev0.TestRequest, resp *runtimev0.TestResponse) error
VerifyAcknowledgement rejects broad/default runs and older peers that did not honor a scoped request.
Types ¶
This section is empty.