![]() | |
|---|---|
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:
[short] skip
# collect coverage profile in text format
go test -coverprofile=blah.prof prog.go prog_test.go
# should not contain cmd-line pseudo-import-path
grep prog.go blah.prof
grep $PWD blah.prof
! grep command-line-arguments blah.prof
-- prog.go --
package main
func Mumble(x int) int {
if x < 0 {
return -x
}
return 42
}
func Grumble(y int) int {
return -y
}
func main() {
}
-- prog_test.go --
package main
import (
"testing"
)
func TestMumble(t *testing.T) {
if x := Mumble(10); x != 42 {
t.Errorf("Mumble(%d): got %d want %d", 10, x, 42)
}
}
|
Useful Commands
|
|
Php Safe-Mode Bypass (Read Files)
|
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0056 ]-- |