• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

torand / FasterSQL / 13457551617

21 Feb 2025 01:12PM UTC coverage: 63.175% (+0.2%) from 62.933%
13457551617

push

github

torand
feat: add support for order by column indices + null ordering

190 of 386 branches covered (49.22%)

Branch coverage included in aggregate %.

50 of 71 new or added lines in 13 files covered. (70.42%)

1 existing line in 1 file now uncovered.

968 of 1447 relevant lines covered (66.9%)

3.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.86
/src/main/java/io/github/torand/fastersql/order/OrderBuilder.java
1
package io.github.torand.fastersql.order;
2

3
import static io.github.torand.fastersql.util.contract.Requires.requireNonBlank;
4
import static java.util.Objects.nonNull;
5
import static java.util.Objects.requireNonNull;
6

7
public class OrderBuilder {
8
    private final String alias;
9
    private final Integer index;
10

11
    OrderBuilder(String alias) {
2✔
12
        this.alias = requireNonBlank(alias, "No alias specified");
7✔
13
        this.index = null;
3✔
14
    }
1✔
15

NEW
16
    OrderBuilder(Integer index) {
×
NEW
17
        this.alias = null;
×
NEW
18
        this.index = requireNonNull(index, "No index specified");
×
NEW
19
    }
×
20

21
    public Order asc() {
22
        return nonNull(index) ? new Ascending(index) : new Ascending(alias);
10!
23
    }
24

25
    public Order desc() {
NEW
26
        return nonNull(index) ? new Descending(index) : new Descending(alias);
×
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc