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

refactor(xerrors): test error by errors.Is and errors.As #75

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wenchy
Copy link
Member

@wenchy wenchy commented Aug 6, 2023

@codecov
Copy link

codecov bot commented Aug 6, 2023

Codecov Report

Merging #75 (73b68e5) into master (7196a7c) will decrease coverage by 0.21%.
The diff coverage is 55.76%.

@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
- Coverage   60.42%   60.21%   -0.21%     
==========================================
  Files          36       38       +2     
  Lines        5574     5834     +260     
==========================================
+ Hits         3368     3513     +145     
- Misses       1841     1947     +106     
- Partials      365      374       +9     
Flag Coverage Δ
unittests 60.21% <55.76%> (-0.21%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
xerrors/stackerr/stack.go 43.61% <43.61%> (ø)
xerrors/stackerr/errors.go 62.65% <62.65%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more


type Error struct {
Code int
Desc string
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not formatted

@wenchy wenchy marked this pull request as draft August 6, 2024 07:38
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.

ecode: add xerrors.Is API to check ecode in error
2 participants