Skip to content

Execute funcdoc examples as tests #12

@ghetzel

Description

@ghetzel

https://github.com/ghetzel/diecast/blob/master/functions_test.go#L112-L130

It would be nice if the Examples that appear in the documentation structs were also evaluated as tests, both to increase surface area of testing and also validate the example output in the documentation.

This is basically a custom version of what godoc does for Examples.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions