• 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

50.0
/src/main/java/io/github/torand/fastersql/order/Orders.java
1
/*
2
 * Copyright (c) 2024 Tore Eide Andersen
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package io.github.torand.fastersql.order;
17

18
import io.github.torand.fastersql.constant.IntegerConstant;
19
import io.github.torand.fastersql.constant.StringConstant;
20
import io.github.torand.fastersql.projection.Projection;
21

22
public final class Orders {
23
    private Orders() {}
24

25
    public static OrderBuilder alias(String alias) {
26
        return new OrderBuilder(alias);
5✔
27
    }
28

29
    public static OrderBuilder index(Integer index) {
NEW
30
        return new OrderBuilder(index);
×
31
    }
32

33
    public static Ascending asc(Projection projection) {
34
        return new Ascending(projection);
5✔
35
    }
36

37
    public static Ascending asc(StringConstant alias) {
NEW
38
        return new Ascending(alias.value());
×
39
    }
40

41
    public static Ascending asc(IntegerConstant index) {
42
        return new Ascending(index.value());
7✔
43
    }
44

45
    public static Descending desc(Projection projection) {
46
        return new Descending(projection);
5✔
47
    }
48

49
    public static Descending desc(StringConstant alias) {
NEW
50
        return new Descending(alias.value());
×
51
    }
52

53
    public static Descending desc(IntegerConstant index) {
NEW
54
        return new Descending(index.value());
×
55
    }
56
}
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