Commit 06a7522
committed
test: add null-guard and SelectBuilder offset tests for full coverage
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).1 parent 789a55f commit 06a7522
1 file changed
Lines changed: 42 additions & 0 deletions
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
88 | 117 | | |
89 | 118 | | |
90 | 119 | | |
| |||
312 | 341 | | |
313 | 342 | | |
314 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
315 | 357 | | |
316 | 358 | | |
317 | 359 | | |
| |||
0 commit comments