|
@@ -7,6 +7,11 @@ import (
|
|
|
"testing"
|
|
"testing"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+func TestTerminal(t *testing.T) {
|
|
|
|
|
+ // test for non-panic
|
|
|
|
|
+ IsTerminal(os.Stdout.Fd())
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func TestCygwinPipeName(t *testing.T) {
|
|
func TestCygwinPipeName(t *testing.T) {
|
|
|
if IsCygwinTerminal(os.Stdout.Fd()) {
|
|
if IsCygwinTerminal(os.Stdout.Fd()) {
|
|
|
t.Fatal("should be false always")
|
|
t.Fatal("should be false always")
|