Documentation
¶
Overview ¶
Package testgen generates Go test stubs for source code files or diffs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// file mode
File string
Path string
// diff mode
Diff string
Log string
Runner Runner
}
Config holds inputs for a testgen run. File mode: set File and Path. Diff mode: set Diff (Log optional). Exactly one mode must be active; Run returns an error otherwise.
Click to show internal directories.
Click to hide internal directories.