Skip to content

martian(test): implement testHelper pattern#939

Merged
mmatczuk merged 3 commits intomainfrom
hg/martian_test_rework
Oct 15, 2024
Merged

martian(test): implement testHelper pattern#939
mmatczuk merged 3 commits intomainfrom
hg/martian_test_rework

Conversation

@Choraden
Copy link
Contributor

When I was trying to change martian behaviour that needed some tests to be adjusted, I realised they are in a poor condition. This patch introduces a testHelper to add some structure and reuse similar code blocks. That way it reduces around 150 LoC. It also leaves the tests in better shape for further refactors.

@Choraden Choraden force-pushed the hg/martian_test_rework branch from a07ea69 to 28ce120 Compare October 14, 2024 08:33
When I was trying to change martian behaviour that needed some tests to be adjusted, I realised they are in a poor condition.
This patch introduces a testHelper to add some structure and reuse similar code blocks.
level=warning msg="[lintersdb] The name "goerr113" is deprecated. The linter has been renamed to: err113.
level=warning msg="The linter 'execinquery' is deprecated (since v1.58.0) due to: The repository of the linter has been archived by the owner."
level=warning msg="The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar."
@Choraden Choraden force-pushed the hg/martian_test_rework branch from 28ce120 to fe630b5 Compare October 14, 2024 08:35
@Choraden Choraden changed the title martian(test): implement testHelper patter martian(test): implement testHelper pattern Oct 14, 2024
@mmatczuk
Copy link
Contributor

Sweet.

@mmatczuk mmatczuk self-requested a review October 15, 2024 08:30
@mmatczuk mmatczuk merged commit 1f5d9b4 into main Oct 15, 2024
@mmatczuk mmatczuk deleted the hg/martian_test_rework branch October 15, 2024 08:32
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.

2 participants