Sign in
go
/
vgo
/
94c68ad279b3c55957e57efe805c47533e51e9f1
/
.
/
vendor
/
cmd
/
go
/
testdata
/
flag_test.go
blob: ddf613d870126ca62b6402718b2f1e466c77e4af [
file
] [
log
] [
blame
]
package flag_test
import (
"flag"
"log"
"testing"
)
var v = flag.Int("v", 0, "v flag")
// Run this as go test pkg -v=7
func TestVFlagIsSet(t *testing.T) {
if *v != 7 {
log.Fatal("v flag not set")
}
}