FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: add null-guard and SelectBuilder offset tests for full coverage by ez-plugins · Pull Request #28 · EzFramework/JavaQueryBuilder · GitHub

test: add null-guard and SelectBuilder offset tests for full coverage - #28

Merged
ez-plugins merged 1 commit into
dev/1.0.5from
feature/public-configuration
Apr 18, 2026
Merged

test: add null-guard and SelectBuilder offset tests for full coverage#28
ez-plugins merged 1 commit into
dev/1.0.5from
feature/public-configuration

Conversation

Copy link
Copy Markdown
Contributor

Cover the five NullPointerException guards in QueryBuilderDefaults that were previously unreachable in tests:

  • builder(null) on the static factory
  • Builder.dialect(null)
  • Builder.defaultColumns(null)
  • Builder.likePrefix(null)
  • Builder.likeSuffix(null)

Also add selectBuilderDefaultOffsetApplied to hit the true-branch of the defaultOffset ternary in SelectBuilder.buildLimitOffsetClause().

QueryBuilderDefaults now reports 100% line coverage; SelectBuilder reaches 97.7% (only the unreachable UnsupportedOperationException path for unknown operators remains uncovered).

Cover the five NullPointerException guards in QueryBuilderDefaults that
were previously unreachable in tests:
  - builder(null) on the static factory
  - Builder.dialect(null)
  - Builder.defaultColumns(null)
  - Builder.likePrefix(null)
  - Builder.likeSuffix(null)

Also add selectBuilderDefaultOffsetApplied to hit the true-branch of the
defaultOffset ternary in SelectBuilder.buildLimitOffsetClause().

QueryBuilderDefaults now reports 100% line coverage; SelectBuilder
reaches 97.7% (only the unreachable UnsupportedOperationException path
for unknown operators remains uncovered).
ez-plugins merged commit 539090e into dev/1.0.5 Apr 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL