Documentation
¶
Overview ¶
Package parityscan is test support for the surface-parity contract around targetactivation plans.
Each activating surface declares which plan kinds it handles (`…HandlesPlanKind`) and separately dispatches them in a switch. The declaration is what the parity pair asserts against, so on its own it proves an intention rather than a behaviour: a kind added to the declaration but never given a branch would pass while a click on it did nothing. This package reads both out of the source and lets a surface require that they name exactly the same kinds, which is the cheapest way to make the two impossible to drift apart.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandledKinds ¶
HandledKinds returns the targetactivation.Plan* constants named by the case clauses of the switch inside fn, as it is written in file. The file path is relative to the package directory, which is where `go test` runs.
Types ¶
This section is empty.