-
Notifications
You must be signed in to change notification settings - Fork 0
feat: delete user test #45
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
base: main
Are you sure you want to change the base?
Conversation
| func TestUserHandler_DeleteUser(t *testing.T) { | ||
| logger, err := lgr.New("INFO") | ||
| if err != nil { | ||
| t.FailNow() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you are loosing the err and will have no chance to investigate what happened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using t.Logf() now, is this the right way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you are loosing the
errand will have no chance to investigate what happened.
Victor used this as example in video lection. You say its not good idea. Who's right?
But then Volodymyr said all code is bullshit )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome to software development!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chance to get an error there is too little.
Anyway, if you want to cover that - log that error. That's it.
|
Kudos, SonarCloud Quality Gate passed!
|








No description provided.