1
0

testutil.go 215 B

123456789
  1. package testutil
  2. import (
  3. "os"
  4. "strings"
  5. )
  6. // InTest is true if the current binary looks like a test artifact.
  7. var InTest = len(os.Args) > 0 && strings.HasSuffix(strings.TrimSuffix(os.Args[0], ".exe"), ".test")