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

torand / FasterSQL / 12970315111

26 Jan 2025 01:44AM UTC coverage: 47.557% (-1.9%) from 49.458%
12970315111

push

github

torand
feat: add subquery support for more operators

108 of 322 branches covered (33.54%)

Branch coverage included in aggregate %.

0 of 59 new or added lines in 7 files covered. (0.0%)

622 of 1213 relevant lines covered (51.28%)

2.71 hits per line

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

13.33
/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.constant;
23

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

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

31
    public static Eq eq(LeftOperand left, Expression right) {
32
        return new Eq(left, right);
×
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, constant(right));
×
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) {
NEW
48
        return new LtSubquery(left, right);
×
49
    }
50

51
    public static Le le(LeftOperand left, Object right) {
52
        return new Le(left, constant(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) {
NEW
60
        return new LeSubquery(left, right);
×
61
    }
62

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

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

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

75
    public static Ge ge(LeftOperand left, Object right) {
76
        return new Ge(left, constant(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) {
NEW
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