Skip to content

feature(tests): add tests for main.go function and improve modes.go tests #194

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

CodeLieutenant
Copy link
Contributor

@CodeLieutenant CodeLieutenant commented May 15, 2025

main.go and modes.go were not covers by unit tests at all, and many bugs were surfaced at these locations. This covers most of the functionality in these files to avoid previous hiccups from the past in the future

Note

tparallel linter had to be removed, at it causes golangci-lint to fail. In s-b most tests from main.go that need to test different outputs based on the input flags, modify global variables, thus t.Parallel() call is not feasible at this moment (large refactor of the code base must be done to allow parallel testing). gotest will output data races when global variables are changed and this makes tests flaky

Copy link
Contributor

@fruch fruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CodeLieutenant CodeLieutenant merged commit e3f38fe into scylladb:master May 27, 2025
1 check passed
@CodeLieutenant CodeLieutenant deleted the feat/tests branch May 27, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants