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

Toggle-off Success Logs from mock.AssertExpectationsForObjects #1334

Open
vaguecoder opened this issue Jan 29, 2023 · 0 comments
Open

Toggle-off Success Logs from mock.AssertExpectationsForObjects #1334

vaguecoder opened this issue Jan 29, 2023 · 0 comments
Labels
pkg-mock Any issues related to Mock

Comments

@vaguecoder
Copy link

I have too many mocked calls in my test and so, mock.AssertExpectationsForObjects prints too many logs. Let's just say in the success case, I'd like to suppress the assertion pass logs like those below. Is there a way to achieve this suppression of success logs?

    tabular_test.go:798: PASS:	Write([]uint8)
    tabular_test.go:798: PASS:	Write([]uint8)
    tabular_test.go:798: PASS:	Write([]uint8)
    tabular_test.go:798: PASS:	Write([]uint8)

My usecase is to mock individual sequential Write calls in a tabwriter. The logs take a lot of scrolling.

@dolmen dolmen added the pkg-mock Any issues related to Mock label Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg-mock Any issues related to Mock
Projects
None yet
Development

No branches or pull requests

2 participants