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

leeonky / test-charm-java / 114

09 Feb 2025 05:45PM UTC coverage: 73.251% (-0.1%) from 73.358%
114

push

circleci

leeonky
Refactor

0 of 70 new or added lines in 3 files covered. (0.0%)

15 existing lines in 7 files now uncovered.

7665 of 10464 relevant lines covered (73.25%)

0.73 hits per line

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

75.0
/DAL-java/src/main/java/com/github/leeonky/dal/ast/opt/DALOperator.java
1
package com.github.leeonky.dal.ast.opt;
2

3
import com.github.leeonky.dal.ast.node.DALExpression;
4
import com.github.leeonky.dal.ast.node.DALNode;
5
import com.github.leeonky.dal.runtime.Data;
6
import com.github.leeonky.dal.runtime.Operators;
7
import com.github.leeonky.dal.runtime.RuntimeContextBuilder.DALRuntimeContext;
8
import com.github.leeonky.interpreter.Operator;
9

10
public abstract class DALOperator extends Operator<DALRuntimeContext, DALNode, DALOperator, DALExpression> {
11
    private final boolean needInspect;
12
    private final Operators type;
13

14
    protected DALOperator(int precedence, String label, boolean needInspect, Operators type) {
15
        super(precedence, label);
1✔
16
        this.needInspect = needInspect;
1✔
17
        this.type = type;
1✔
18
    }
1✔
19

20
    public Data calculateData(DALExpression expression, DALRuntimeContext context) {
21
        return context.wrap(calculate(expression, context));
1✔
22
    }
23

24
    @Override
25
    public Object calculate(DALExpression expression, DALRuntimeContext context) {
26
        return calculateData(expression, context).instance();
×
27
    }
28

29
    public boolean isNeedInspect() {
30
        return needInspect;
×
31
    }
32

33
    public String inspect(String node1, String node2) {
34
        if (node1 == null || node1.isEmpty())
1✔
35
            return String.format("%s %s", label, node2);
1✔
36
        return String.format("%s %s %s", node1, label, node2);
1✔
37
    }
38

39
    public Operators overrideType() {
40
        return type;
1✔
41
    }
42

43
    public boolean isVerification() {
UNCOV
44
        return false;
×
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