Skip to content

Conversation

@abhishekrb19
Copy link
Contributor

Test-only change:

  • Increases test coverage for the DirectDruidClient class from 57%, 35%, 16% to 73%, 69%, 43% for method / line / branch coverage respectively. We can add more tests as we evolve the code and/or do bug fixes.
  • Replaces mocks with more concrete classes and test helpers, allowing the internals of the class, including HttpResponseHandler to be exercised.
  • Also added a test for feat: log total bytes gathered when max scatter-gather bytes limit is reached #18841 for which coverage had to be skipped

This PR has:

  • been self-reviewed.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.

Replaces mocks with more concrete test helpers that will invoke and exercise the internals
of DirectDruidClient response handler, etc. Also, add a new unit test for
ResourceExceededException that wasn't previously exercised.
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.

1 participant