aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/testsuite/testsuite_guard.go
blob: 0859d17fb8f5f52ccfb71101bc7f7bb5535f6c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//go:build !testsuite && !tester

package testsuite

import (
	"os"
	"testing"
)

func init() {
	if !testing.Testing() {
		println("package testsuite imported in non-testsuite program")
		os.Exit(1)
	}
}