https://github.com/integrii/go-test-bug
Demonstrates a bug in argument passing in go test
https://github.com/integrii/go-test-bug
Last synced: 3 months ago
JSON representation
Demonstrates a bug in argument passing in go test
- Host: GitHub
- URL: https://github.com/integrii/go-test-bug
- Owner: integrii
- Created: 2020-01-23T08:05:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-23T08:25:16.000Z (over 5 years ago)
- Last Synced: 2023-04-08T02:36:39.693Z (about 2 years ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-test-bug
Demonstrates a bug in argument passing in go test.You would expect to be able to run `go test` with the flag package, but instead you get the following:
```
flag provided but not defined: -test.timeout
Usage of /var/folders/nt/y0clsxwx4wjf7w8b9kcb7wgc0000gn/T/go-build978967543/b001/go-test-bug.test:
-f An example bool flag
exit status 2
FAIL _/Users/ericgreer/git/go-test-bug 0.005s
```