Documentation ¶
Overview ¶
Package testdown runs "golden file" style tests defined in Markdown documents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assertion ¶
type Assertion struct { Name string File string Line int Skip bool InputLanguage string Input string OutputLanguage string ExpectedOutput string }
Assertion is a Test that describes a single assertion within a Document.
func (Assertion) AcceptVisitor ¶
func (t Assertion) AcceptVisitor(v TestVisitor)
AcceptVisitor calls the method on v that corresponds to t's type.
type Document ¶
Document describes a Markdown document that (possibly) contains assertions.
func (Document) AcceptVisitor ¶
func (t Document) AcceptVisitor(v TestVisitor)
AcceptVisitor calls the method on v that corresponds to t's type.
type NativeRunner ¶
NativeRunner runs testdown tests within Go's native testing framework.
type Runner ¶
Runner executes testdown tests within any test framework with an interface similar to Go's native testing framework.
type Suite ¶
Suite is a Test that contains other tests loaded from the same directory.
func (Suite) AcceptVisitor ¶
func (t Suite) AcceptVisitor(v TestVisitor)
AcceptVisitor calls the method on v that corresponds to t's type.
type TestVisitor ¶
TestVisitor performs an operation based on the concrete type of a Test.