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

doppelganger9 / mastermind / #173

11 Apr 2024 07:28PM UTC coverage: 0.0%. First build
#173

push

web-flow
Merge a15e8f6c6 into cbbf3a44e

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

0 of 91 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/src/main/java/com/doppelganger9/mastermind/ColorEnum.java
1
package com.doppelganger9.mastermind;
2

3
import lombok.AccessLevel;
4
import lombok.Getter;
5
import lombok.RequiredArgsConstructor;
6

7
/**
8
 * Possible Color choices in the game.
9
 */
NEW
10
@Getter
×
NEW
11
@RequiredArgsConstructor(access = AccessLevel.PACKAGE)
×
12
enum ColorEnum {
13
    R ("Red"),
×
14
    J ("Yellow"),
×
15
    B("Blue"),
×
16
    O("Orange"),
×
17
    V("Green"),
×
18
    N("Black");
×
19

NEW
20
    private final String label;
×
21

22
    static ColorEnum fromLabel(String label) {
23
        for(ColorEnum c : ColorEnum.values()) {
×
24
            if (c.getLabel().equals(label)) {
×
25
                return c;
×
26
            }
27
        }
28
        return null;
×
29
    }
30
}
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