Skip to content

Instantly share code, notes, and snippets.

@haya14busa
Created December 5, 2016 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haya14busa/ab3b5a75c76ecef505a777b8c5242f02 to your computer and use it in GitHub Desktop.
Save haya14busa/ab3b5a75c76ecef505a777b8c5242f02 to your computer and use it in GitHub Desktop.
gosumcheck example
$ gosumcheck github.com/mackerelio/...
/home/haya14busa/src/github.com/mackerelio/mkr/alerts.go:127:3: uncovered cases for github.com/mackerelio/mackerel-client-go.Monitor type switch:
- *github.com/mackerelio/mackerel-client-go.MonitorExpression
$ gosumcheck golang.org/x/tools/...
/home/haya14busa/src/golang.org/x/tools/cmd/godex/print.go:95:5: uncovered cases for go/types.Object type switch:
- *go/types.Nil
- *go/types.Label
- *go/types.PkgName
- *go/types.object
/home/haya14busa/src/golang.org/x/tools/cmd/guru/definition.go:163:4: uncovered cases for go/ast.Decl type switch:
- *go/ast.BadDecl
/home/haya14busa/src/golang.org/x/tools/cmd/guru/definition.go:166:6: uncovered cases for go/ast.Spec type switch:
- *go/ast.ImportSpec
/home/haya14busa/src/golang.org/x/tools/cmd/guru/describe.go:135:3: uncovered cases for go/ast.Node type switch:
- *go/ast.Package
- *go/types.Scope
- *go/ast.BadDecl
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment