OSDN Git Service

feat(warder): add warder backbone (#181)
[bytom/vapor.git] / vendor / github.com / mattn / go-isatty / isatty_others_test.go
1 // +build !windows
2
3 package isatty
4
5 import (
6         "os"
7         "testing"
8 )
9
10 func TestTerminal(t *testing.T) {
11         // test for non-panic
12         IsTerminal(os.Stdout.Fd())
13 }
14
15 func TestCygwinPipeName(t *testing.T) {
16         if IsCygwinTerminal(os.Stdout.Fd()) {
17                 t.Fatal("should be false always")
18         }
19 }