예제 #1
0
 def hint(self):
     strings = {
         MetricChange.NewMetric: colored(Color.BLUE, "NEW"),
         MetricChange.NoChange: "",
         MetricChange.Increase: colored(Color.RED, "BAD"),
         MetricChange.Decrease: colored(Color.GREEN, "GOOD")
     }
     return strings[self]
예제 #2
0
 def __str__(self):
     strings = {
         MetricChange.NewMetric: colored(Color.BLUE, "new"),
         MetricChange.NoChange: colored(Color.WHITE, "unchanged"),
         MetricChange.Increase: colored(Color.RED, "increased"),
         MetricChange.Decrease: colored(Color.GREEN, "decreased")
     }
     return strings[self]
예제 #3
0
파일: testutil.py 프로젝트: vtols/ghc
def str_info(s: str) -> str:
    return colored(Color.BLUE, s)
예제 #4
0
파일: testutil.py 프로젝트: vtols/ghc
def str_warn(s: str) -> str:
    return colored(Color.YELLOW, s)