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

torand / FasterSQL / 12970605210

26 Jan 2025 02:26AM UTC coverage: 45.768% (-0.4%) from 46.173%
12970605210

push

github

torand
feat: support avg function

108 of 334 branches covered (32.34%)

Branch coverage included in aggregate %.

0 of 12 new or added lines in 2 files covered. (0.0%)

622 of 1261 relevant lines covered (49.33%)

2.6 hits per line

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

33.33
/src/main/java/io/github/torand/fastersql/function/aggregate/Aggregates.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.function.aggregate;
17

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

20
public final class Aggregates {
21
    private Aggregates() {}
22

23
    public static Max max(Field field) {
24
        return new Max(field, null);
6✔
25
    }
26

27
    public static Min min(Field field) {
28
        return new Min(field, null);
×
29
    }
30

31
    public static Count count(Field field) {
32
        return new Count(field, null);
×
33
    }
34

35
    public static CountAll countAll() {
36
        return new CountAll(null);
5✔
37
    }
38

39
    public static Sum sum(Field field) {
40
        return new Sum(field, null);
×
41
    }
42

43
    public static Avg avg(Field field) {
NEW
44
        return new Avg(field, null);
×
45
    }
46
}
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