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

42BV / CSVeed / 92

25 Jun 2026 06:22PM UTC coverage: 84.798% (-0.04%) from 84.833%
92

Pull #200

github

web-flow
Merge 98fc2a2ce into db22a1771
Pull Request #200: Avoid bug prone code

505 of 685 branches covered (73.72%)

Branch coverage included in aggregate %.

4 of 5 new or added lines in 1 file covered. (80.0%)

1386 of 1545 relevant lines covered (89.71%)

0.9 hits per line

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

89.47
/src/main/java/org/csveed/token/TokenState.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 * See LICENSE file for details.
4
 *
5
 * Copyright 2013-2026 42 BV
6
 */
7
package org.csveed.token;
8

9
/**
10
 * The Enum TokenState.
11
 */
12
public enum TokenState {
1✔
13

14
    /** The reset. */
15
    RESET,
1✔
16

17
    /** The start. */
18
    START,
1✔
19

20
    /** The processing. */
21
    PROCESSING;
1✔
22

23
    /**
24
     * Next.
25
     *
26
     * @return the token state
27
     */
28
    public TokenState next() {
29
        switch (this) {
1!
30
            case RESET:
31
                return START;
1✔
32
            case START:
33
                return PROCESSING;
1✔
34
            case PROCESSING:
35
                return RESET;
1✔
36
            default:
NEW
37
                throw new IllegalStateException("Unknown TokenState: " + this);
×
38
        }
39
    }
40

41
    /**
42
     * Checks if is start.
43
     *
44
     * @return true, if is start
45
     */
46
    public boolean isStart() {
47
        return this == START;
1✔
48
    }
49

50
    /**
51
     * Checks if is reset.
52
     *
53
     * @return true, if is reset
54
     */
55
    public boolean isReset() {
56
        return this == RESET;
1✔
57
    }
58
}
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