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

torand / FasterSQL / 13411942092

19 Feb 2025 11:56AM UTC coverage: 61.269% (-0.7%) from 61.922%
13411942092

push

github

torand
chore: prepare release

161 of 346 branches covered (46.53%)

Branch coverage included in aggregate %.

872 of 1340 relevant lines covered (65.07%)

3.43 hits per line

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

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

18
import io.github.torand.fastersql.Context;
19
import io.github.torand.fastersql.Field;
20

21
import java.util.stream.Stream;
22

23
import static java.util.Objects.requireNonNull;
24

25
public class IsNull implements Predicate {
26
    private final Field operand;
27

28
    IsNull(Field operand) {
2✔
29
        this.operand = requireNonNull(operand, "No operand specified");
6✔
30
    }
1✔
31

32
    // Sql
33

34
    @Override
35
    public String sql(Context context) {
36
        return operand.sql(context) + " is null";
×
37
    }
38

39
    @Override
40
    public Stream<Object> params(Context context) {
41
        return Stream.empty();
2✔
42
    }
43

44
    // Predicate
45

46
    @Override
47
    public String negatedSql(Context context) {
48
        return operand.sql(context) + " is not null";
6✔
49
    }
50

51
    @Override
52
    public Stream<Field> fieldRefs() {
53
        return Stream.empty();
2✔
54
    }
55
}
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