Documentation
¶
Overview ¶
Package vectorio holds the byte semantics of a committed conformance corpus.
Every emitter writes a corpus the same way and compares it the same way, and the bytes are the contract: a corpus is committed, so an emitter that indented differently or dropped the trailing newline would rewrite the whole file and report the change as drift. Those semantics lived in one package's test files and were re-inlined by the emitter in another, because Go cannot reach a _test.go helper across a package boundary.
It deliberately takes no *testing.T and returns errors instead of failing. A non-test package that imports testing registers the -test.* flags on every binary that links it, so what is shared here is the byte handling; each emitter keeps its own t.Fatalf and its own wording.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal renders v the way every committed corpus is written: two-space indent and exactly one trailing newline.
Types ¶
This section is empty.