Skip to content

Conversation

@hikyaru-suzuki
Copy link
Contributor

Summary

Reason log output only if failed in mock.AssertExpectations

Changes

Motivation

Details in #1358

Related issues

Closes #1358
Closes #782
Closes #414

@hikyaru-suzuki
Copy link
Contributor Author

@boyan-soubachov Hi!, cloud you review this?

@dolmen dolmen added pkg-mock Any issues related to Mock bug labels Jul 5, 2023
@dolmen dolmen changed the title mock: AssertExpectations reason log output only if failed mock: AssertExpectations log reason only on failure Jul 5, 2023
@dolmen
Copy link
Collaborator

dolmen commented Jul 5, 2023

It would be helpful to add a test case, but that's not blocking for a merge.

@hikyaru-suzuki
Copy link
Contributor Author

hikyaru-suzuki commented Jul 6, 2023

It would be helpful to add a test case, but that's not blocking for a merge.

@dolmen
I thought this code also served as a test case. If a more detailed test for the log is needed, I'll add it!

func TestLoggingAssertExpectations(t *testing.T) {

@hikyaru-suzuki
Copy link
Contributor Author

@dolmen
I understand you are very busy, but If there are no issues, cloud you proceed with the merge?
I'm looking forward to this fix being incorporated in the next version!

@dolmen
Copy link
Collaborator

dolmen commented Jul 25, 2023

Please don't merge master into your branch.

Instead:

git remote update
git rebase origin/master
git push -f

@hikyaru-suzuki
Copy link
Contributor Author

Please don't merge master into your branch.

Instead:

git remote update
git rebase origin/master
git push -f

@dolmen
Sorry, I applied this operation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug pkg-mock Any issues related to Mock

Projects

None yet

4 participants