Skip to content

Conversation

dolmen
Copy link
Contributor

@dolmen dolmen commented Mar 15, 2023

Just log the result 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

@dolmen dolmen force-pushed the testing-log-result branch from a2560f0 to 6ef9dc3 Compare March 15, 2023 11:28
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
@dolmen dolmen force-pushed the testing-log-result branch from 6ef9dc3 to 42997b3 Compare March 22, 2023 14:52
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (72a590e) 44.00% compared to head (42997b3) 44.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #86   +/-   ##
=======================================
  Coverage   44.00%   44.00%           
=======================================
  Files           3        3           
  Lines          75       75           
=======================================
  Hits           33       33           
  Misses         40       40           
  Partials        2        2           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mattn mattn merged commit c067b4f into mattn:master Mar 22, 2023
@mattn
Copy link
Owner

mattn commented Mar 22, 2023

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants