Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestOutputGenerator ¶
type TestOutputGenerator struct { generator.GoGivensOutputGenerator // contains filtered or unexported fields }
TestOutputGenerator is an implementation of the GoGivensOutputGenerator that generates an html file per test. It is thread safe between goroutines.
func NewTestOutputGenerator ¶
func NewTestOutputGenerator() *TestOutputGenerator
NewTestOutputGenerator creates a template that is used to generate the html output.
func (*TestOutputGenerator) ContentType ¶ added in v1.4.0
func (outputGenerator *TestOutputGenerator) ContentType() string
ContentType for the output generated.
func (*TestOutputGenerator) Generate ¶
func (outputGenerator *TestOutputGenerator) Generate(pageData generator.PageData) io.Reader
Generate generates html output for a test. The return string contains the html that goes into the output file generated in gogivens.GenerateTestOutput(). The function panics if the template cannot be generated.
Click to show internal directories.
Click to hide internal directories.