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:
Shicong Huang 2019-01-08 08:18:30 -08:00
parent c3de49130a
commit a79e254e49
9 changed files with 346 additions and 10 deletions

View file

@ -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());
}