Skip to content

Commit 42997b3

Browse files
committed
tests: log value of IsTerminal
Just log the output of IsTerminal in TestTerminal. $ go test -v -run TestTerminal === RUN TestTerminal isatty_others_test.go:13: os.Stdout: true --- PASS: TestTerminal (0.00s) PASS ok github.com/mattn/go-isatty 0.160s $ go test -v -run TestTerminal | cat === RUN TestTerminal isatty_others_test.go:13: os.Stdout: false --- PASS: TestTerminal (0.00s) PASS ok github.com/mattn/go-isatty 0.203s
1 parent 72a590e commit 42997b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isatty_others_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
func TestTerminal(t *testing.T) {
1212
// test for non-panic
13-
IsTerminal(os.Stdout.Fd())
13+
t.Log("os.Stdout:", IsTerminal(os.Stdout.Fd()))
1414
}
1515

1616
func TestCygwinPipeName(t *testing.T) {

0 commit comments

Comments
 (0)