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

CyclopsMC / IntegratedDynamics / 18427741591

11 Oct 2025 09:40AM UTC coverage: 53.024% (+0.001%) from 53.023%
18427741591

push

github

rubensworks
Merge remote-tracking branch 'origin/master-1.21-lts' into master-1.21

2869 of 8770 branches covered (32.71%)

Branch coverage included in aggregate %.

17332 of 29328 relevant lines covered (59.1%)

3.07 hits per line

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

44.44
/src/main/java/org/cyclops/integrateddynamics/gametest/integration/DummyVariable.java
1
package org.cyclops.integrateddynamics.gametest.integration;
2

3
import org.cyclops.integrateddynamics.api.evaluate.variable.IValue;
4
import org.cyclops.integrateddynamics.api.evaluate.variable.IValueType;
5
import org.cyclops.integrateddynamics.api.evaluate.variable.IVariable;
6
import org.cyclops.integrateddynamics.api.evaluate.variable.IVariableInvalidateListener;
7

8
/**
9
 * A dummy boolean variable.
10
 * @author rubensworks
11
 */
12
public class DummyVariable<V extends IValue> implements IVariable<V> {
13

14
    private final IValueType<V> type;
15
    private V value;
16
    private boolean fetched = false;
3✔
17

18
    public DummyVariable(IValueType<V> type, V value) {
2✔
19
        this.type = type;
3✔
20
        this.value = value;
3✔
21
    }
1✔
22

23
    public DummyVariable(IValueType<V> type) {
×
24
        this.type = type;
×
25
        this.value = type.getDefault();
×
26
    }
×
27

28
    @Override
29
    public IValueType<V> getType() {
30
        return type;
3✔
31
    }
32

33
    @Override
34
    public V getValue() {
35
        this.fetched = true;
3✔
36
        return value;
3✔
37
    }
38

39
    @Override
40
    public void invalidate() {
41

42
    }
×
43

44
    @Override
45
    public void addInvalidationListener(IVariableInvalidateListener invalidateListener) {
46

47
    }
×
48

49
    @Override
50
    public void removeInvalidationListener(IVariableInvalidateListener invalidateListener) {
51

52
    }
×
53

54
    public void setValue(V value) {
55
        this.value = value;
×
56
    }
×
57

58
    public boolean isFetched() {
59
        return this.fetched;
×
60
    }
61
}
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