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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: added some tests #142

Merged
merged 4 commits into from
Oct 12, 2021
Merged

test: added some tests #142

merged 4 commits into from
Oct 12, 2021

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Oct 12, 2021

started adding some more tests, starting from the basic stuff:

  • logging
  • keys
  • cmds

on subsequent PRs I can keep going up to the more complex stuff (cancel reader, tty, etc) 馃檹

FWIW, I'm measuring coverage with:

go test  -failfast -race -coverpkg=./... -covermode=atomic -coverprofile=coverage.txt -v ./... && go tool cover -html=coverage.txt

On master:

coverage: 5.8% of statements in ./...

on this branch:

coverage: 15.8% of statements in ./...

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
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

2 participants