Skip to content

Commit

Permalink
additionally check test code (#11)
Browse files Browse the repository at this point in the history
This commit expands the capabilities of the tool so
that it can check tests as well.

This may or may not have been a regression introduced
with: BurntSushi/go-sumtype#10
  • Loading branch information
kujenga authored and BurntSushi committed Feb 27, 2019
1 parent e93e76e commit f6a8b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func run(pkgs []*packages.Package) []error {

func tycheckAll(args []string) ([]*packages.Package, error) {
conf := &packages.Config{
Mode: packages.LoadSyntax,
Mode: packages.LoadSyntax,
Tests: true,
}
pkgs, err := packages.Load(conf, args...)
if err != nil {
Expand Down

0 comments on commit f6a8b46

Please sign in to comment.