route/vendor/github.com/mattn/go-isatty/isatty_others_test.go

20 lines
273 B
Go
Raw Normal View History

2017-12-02 23:34:35 +00:00
// +build !windows
package isatty
import (
"os"
"testing"
)
func TestTerminal(t *testing.T) {
// test for non-panic
IsTerminal(os.Stdout.Fd())
}
func TestCygwinPipeName(t *testing.T) {
if IsCygwinTerminal(os.Stdout.Fd()) {
t.Fatal("should be false always")
}
}