Skip to content

Convert all mocks to NiceMock#893

Merged
chreden merged 9 commits intomasterfrom
issue/887
Feb 24, 2022
Merged

Convert all mocks to NiceMock#893
chreden merged 9 commits intomasterfrom
issue/887

Conversation

@chreden
Copy link
Copy Markdown
Owner

@chreden chreden commented Feb 22, 2022

Convert all Mocks to be NiceMock. This will remove all the tracing in the test logs that were essentially "everything's ok" alarms.
Added two new functions to make mocks - mock_shared and mock_unique. They just make a NiceMock<T> instead of a T.
Updated all of the tests to use these functions or NiceMock directly if required.
Test log size is down from about 1.5 MiB to 80KiB and can actually be read by humans now.
Closes #887

@chreden chreden changed the title Issue/887 Convert all mocks to NiceMock Feb 23, 2022
@chreden chreden self-assigned this Feb 23, 2022
@chreden chreden requested a review from makotocchi February 23, 2022 11:55
@chreden chreden marked this pull request as ready for review February 23, 2022 11:56
@chreden chreden merged commit 42cf844 into master Feb 24, 2022
@chreden chreden deleted the issue/887 branch February 24, 2022 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert all the mocks to NiceMock

2 participants