-
Notifications
You must be signed in to change notification settings - Fork 119
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
Increase testing coverage (and some related refactors) #86
Conversation
// TODO: add shutdown hook for graceful stop | ||
bp.Run(context.TODO()) | ||
|
||
// Adding shutdown hook for graceful stop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grcevski this will conflict with your ongoing work, but I had to do it here because the runtime coverage generator requires a graceful stop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that's fine, not a problem. I'll merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Very nice refactor!
// TODO: add shutdown hook for graceful stop | ||
bp.Run(context.TODO()) | ||
|
||
// Adding shutdown hook for graceful stop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that's fine, not a problem. I'll merge.
* Testing RingBufForwarder (44% -> 53% cov) * ringbuf forwarder: don't create ticker if there is no batch timeout * Reduced cyclomatic complexity of ringbufForwarder * Merging integration tests coverage data
Raised coverage from <40% to 73,8%
New unit tests were created, but the improvement has been achieved also by generating and uploading coverage data from integration tests.
In linting, cyclomatic complexity limit has been decreased to 10, and few refactors were done to let linting pass in some complex functions.