![]() | |
|---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm003.cluster110.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: # Relative imports in command line package
env GO111MODULE=off
# Run tests outside GOPATH.
env GOPATH=$WORK/tmp
go test ./testimport/p.go ./testimport/p_test.go ./testimport/x_test.go
stdout '^ok'
-- testimport/p.go --
package p
func F() int { return 1 }
-- testimport/p1/p1.go --
package p1
func F() int { return 1 }
-- testimport/p2/p2.go --
package p2
func F() int { return 1 }
-- testimport/p_test.go --
package p
import (
"./p1"
"testing"
)
func TestF(t *testing.T) {
if F() != p1.F() {
t.Fatal(F())
}
}
-- testimport/x_test.go --
package p_test
import (
. "../testimport"
"./p2"
"testing"
)
func TestF1(t *testing.T) {
if F() != p2.F() {
t.Fatal(F())
}
}
|
Useful Commands
|
|
Php Safe-Mode Bypass (Read Files)
|
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0047 ]-- |