mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
Add an action to check the status of OT&E verification
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228333195
This commit is contained in:
parent
c3de49130a
commit
a79e254e49
9 changed files with 346 additions and 10 deletions
|
@ -177,7 +177,7 @@ public class OteStats {
|
|||
}
|
||||
|
||||
/** Returns a more human-readable translation of the enum constant. */
|
||||
private String description() {
|
||||
public String getDescription() {
|
||||
return Ascii.toLowerCase(this.name().replace('_', ' '));
|
||||
}
|
||||
|
||||
|
@ -270,7 +270,7 @@ public class OteStats {
|
|||
return String.format(
|
||||
"%s\nTOTAL: %d",
|
||||
EnumSet.allOf(StatType.class).stream()
|
||||
.map(stat -> String.format("%s: %d", stat.description(), statCounts.count(stat)))
|
||||
.map(stat -> String.format("%s: %d", stat.getDescription(), statCounts.count(stat)))
|
||||
.collect(Collectors.joining("\n")),
|
||||
statCounts.size());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue