Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: log value of IsTerminal #86

Merged
merged 1 commit into from Mar 22, 2023
Merged

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

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
@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
12 checks passed
@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.

None yet

3 participants