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

torand / FasterSQL / 13316818541

13 Feb 2025 08:49PM UTC coverage: 56.762%. First build
13316818541

Pull #8

github

web-flow
Merge a7d313d14 into 1f252c094
Pull Request #8: feat: misc additions

143 of 336 branches covered (42.56%)

Branch coverage included in aggregate %.

97 of 171 new or added lines in 34 files covered. (56.73%)

772 of 1276 relevant lines covered (60.5%)

3.21 hits per line

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

40.0
/src/main/java/io/github/torand/fastersql/predicate/comparison/ComparisonPredicates.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.predicate.comparison;
17

18
import io.github.torand.fastersql.expression.Expression;
19
import io.github.torand.fastersql.predicate.LeftOperand;
20
import io.github.torand.fastersql.subquery.Subquery;
21

22
import static io.github.torand.fastersql.constant.Constants.$;
23

24
public final class ComparisonPredicates {
25
    private ComparisonPredicates() {}
26

27
    public static Eq eq(LeftOperand left, Object right) {
28
        return new Eq(left, $(right));
7✔
29
    }
30

31
    public static Eq eq(LeftOperand left, Expression right) {
32
        return new Eq(left, right);
6✔
33
    }
34

35
    public static EqSubquery eq(LeftOperand left, Subquery right) {
36
        return new EqSubquery(left, right);
6✔
37
    }
38

39
    public static Lt lt(LeftOperand left, Object right) {
40
        return new Lt(left, $(right));
7✔
41
    }
42

43
    public static Lt lt(LeftOperand left, Expression right) {
44
        return new Lt(left, right);
×
45
    }
46

47
    public static LtSubquery lt(LeftOperand left, Subquery right) {
48
        return new LtSubquery(left, right);
×
49
    }
50

51
    public static Le le(LeftOperand left, Object right) {
NEW
52
        return new Le(left, $(right));
×
53
    }
54

55
    public static Le le(LeftOperand left, Expression right) {
56
        return new Le(left, right);
×
57
    }
58

59
    public static LeSubquery le(LeftOperand left, Subquery right) {
60
        return new LeSubquery(left, right);
×
61
    }
62

63
    public static Gt gt(LeftOperand left, Object right) {
64
        return new Gt(left, $(right));
7✔
65
    }
66

67
    public static Gt gt(LeftOperand left, Expression right) {
68
        return new Gt(left, right);
6✔
69
    }
70

71
    public static GtSubquery gt(LeftOperand left, Subquery right) {
72
        return new GtSubquery(left, right);
×
73
    }
74

75
    public static Ge ge(LeftOperand left, Object right) {
NEW
76
        return new Ge(left, $(right));
×
77
    }
78

79
    public static Ge ge(LeftOperand left, Expression right) {
80
        return new Ge(left, right);
×
81
    }
82

83
    public static GeSubquery ge(LeftOperand left, Subquery right) {
84
        return new GeSubquery(left, right);
×
85
    }
86
}
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