LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /opt/golang/1.22.0/src/cmd/go/testdata/script/
File Upload :
Command :
Current File : //opt/golang/1.22.0/src/cmd/go/testdata/script/test_xtestonly_works.txt

[short] skip

go test xtestonly
! stdout '^ok.*\[no tests to run\]'
stdout '^ok'

-- go.mod --
module xtestonly

go 1.16
-- f.go --
package xtestonly

func F() int { return 42 }
-- f_test.go --
package xtestonly_test

import (
	"testing"
	"xtestonly"
)

func TestF(t *testing.T) {
	if x := xtestonly.F(); x != 42 {
		t.Errorf("f.F() = %d, want 42", x)
	}
}

LittleDemon - FACEBOOK
[ KELUAR ]