blob: 608657b65804dc60235d1ed589b3569b149d710b [file] [log] [blame]
# Very minimal test of -json flag.
deadcode -json example.com/p
want `"Path": "example.com/p",`
want `"Name": "DeadFunc",`
want `"Generated": false`
want `"Line": 5,`
want `"Col": 6`
-- go.mod --
module example.com
go 1.18
-- p/p.go --
package main
func main() {}
func DeadFunc() {}
type T int
func (*T) DeadMethod() {}