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

CyclopsMC / IntegratedDynamics / 20210191346

14 Dec 2025 03:32PM UTC coverage: 19.514% (-33.5%) from 53.061%
20210191346

push

github

rubensworks
Remove deprecations

663 of 8728 branches covered (7.6%)

Branch coverage included in aggregate %.

6786 of 29445 relevant lines covered (23.05%)

1.09 hits per line

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

0.0
/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;
×
17

18
    public DummyVariable(IValueType<V> type, V value) {
×
19
        this.type = type;
×
20
        this.value = value;
×
21
    }
×
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;
×
31
    }
32

33
    @Override
34
    public V getValue() {
35
        this.fetched = true;
×
36
        return value;
×
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