mirror of
https://github.com/octoleo/restic.git
synced 2024-11-14 09:14:07 +00:00
20 lines
273 B
Go
20 lines
273 B
Go
|
// +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")
|
||
|
}
|
||
|
}
|