Documentation
¶
Overview ¶
Package docsource renders guide examples from compiled consumer source.
Index ¶
- Constants
- func Check(documents []Document) error
- func CheckGoInputs(root string, documents []Document, input io.Reader) error
- func CheckTypeScriptInputs(root string, documents []Document) error
- func ClosesFence(line, marker string) bool
- func FenceStart(line string) (string, string)
- func RequiresORMMigration(name string) bool
- type Document
- type Inclusion
Constants ¶
const TypeScriptInputs = "tests/fixtures/consumer/clientcontracts/typescript-inputs.json"
Variables ¶
This section is empty.
Functions ¶
func CheckGoInputs ¶
CheckGoInputs consumes concatenated go list -json ./... results from the exact fixture modules and build environment used by make fixture-check. Test files count because that gate uses go test, not just go build. IgnoredGoFiles do not.
func CheckTypeScriptInputs ¶
CheckTypeScriptInputs uses the same file list the fresh-client strict compiler copies into its project. Frozen clients and unregistered testdata are not proof.
func ClosesFence ¶
ClosesFence distinguishes a safe longer delimiter from shorter content runs.
func FenceStart ¶
FenceStart returns a fenced block delimiter and its language.
func RequiresORMMigration ¶
RequiresORMMigration identifies guides whose complete coverage and migration policy came from the former compiled-examples convention.