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

wurstscript / WurstScript / 187

pending completion
187

push

circleci

Update pjass to detect functions with too many parameters

17138 of 27007 relevant lines covered (63.46%)

0.63 hits per line

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

0.0
de.peeeq.wurstscript/src/main/java/de/peeeq/datastructures/IntTuple.java
1
package de.peeeq.datastructures;
2

3
import org.eclipse.jdt.annotation.Nullable;
4

5
import java.util.Arrays;
6

7
public class IntTuple {
8
    private final int[] ar;
9

10
    private IntTuple(int len) {
×
11
        ar = new int[len];
×
12
    }
×
13

14
    public static IntTuple of(int... is) {
15
        IntTuple r = new IntTuple(is.length);
×
16
        System.arraycopy(is, 0, r.ar, 0, is.length);
×
17
        return r;
×
18
    }
19

20

21
    public int head() {
22
        return ar[0];
×
23
    }
24

25
    public IntTuple tail() {
26
        IntTuple r = new IntTuple(ar.length - 1);
×
27
        System.arraycopy(ar, 1, r.ar, 0, ar.length - 1);
×
28
        return r;
×
29
    }
30

31

32
    @Override
33
    public String toString() {
34
        return Arrays.toString(ar);
×
35
    }
36

37
    @Override
38
    public int hashCode() {
39
        return Arrays.hashCode(ar);
×
40
    }
41

42
    @Override
43
    public boolean equals(@Nullable Object obj) {
44
        if (this == obj)
×
45
            return true;
×
46
        if (obj == null)
×
47
            return false;
×
48
        if (getClass() != obj.getClass())
×
49
            return false;
×
50
        IntTuple other = (IntTuple) obj;
×
51
        return Arrays.equals(ar, other.ar);
×
52
    }
53

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

© 2025 Coveralls, Inc