File: isatty_others_test.go

package info (click to toggle)
icingadb 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 40,272 kB
  • sloc: ansic: 155,865; asm: 5,498; sql: 3,497; sh: 1,406; cpp: 1,132; makefile: 357; xml: 160
file content (20 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//go:build !windows
// +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")
	}
}