1 //go:build !windows 2 // +build !windows 3 4 package isatty 5 6 import ( 7 "os" 8 "testing" 9 ) 10 11 func TestTerminal(t *testing.T) { 12 // test for non-panic 13 t.Log("os.Stdout:", IsTerminal(os.Stdout.Fd())) 14 } 15 16 func TestCygwinPipeName(t *testing.T) { 17 if IsCygwinTerminal(os.Stdout.Fd()) { 18 t.Fatal("should be false always") 19 } 20 } 21