learning_go/pkg/mod/github.com/mattn/go-isatty@v0.0.20/isatty_others_test.go
a.pivkin 59666d0dd6 wer
2025-09-06 13:02:52 +03:00

21 lines
314 B
Go

//go:build !windows
// +build !windows
package isatty
import (
"os"
"testing"
)
func TestTerminal(t *testing.T) {
// test for non-panic
t.Log("os.Stdout:", IsTerminal(os.Stdout.Fd()))
}
func TestCygwinPipeName(t *testing.T) {
if IsCygwinTerminal(os.Stdout.Fd()) {
t.Fatal("should be false always")
}
}