++
отслеживание нанов в тестах
This commit is contained in:
@@ -14,11 +14,12 @@ public enum TaskState implements StatusEnum {
|
||||
//-----------------------
|
||||
Finished,
|
||||
//--- результирующие
|
||||
Crushed,
|
||||
NaN,
|
||||
DoneWithErrors,
|
||||
DoneWithDiffs,
|
||||
AbortedByTimeout,
|
||||
AbortedByUser,
|
||||
Crushed,
|
||||
WrongTestFormat,
|
||||
InternalError,
|
||||
Done,
|
||||
@@ -40,6 +41,7 @@ public enum TaskState implements StatusEnum {
|
||||
case InternalError:
|
||||
case Crushed:
|
||||
case DoneWithDiffs:
|
||||
case NaN:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
@@ -47,6 +49,8 @@ public enum TaskState implements StatusEnum {
|
||||
}
|
||||
public String getDescription() {
|
||||
switch (this) {
|
||||
case NaN:
|
||||
return "NaN";
|
||||
case Waiting:
|
||||
return "ожидание";
|
||||
case WorkspaceCreated:
|
||||
@@ -104,6 +108,7 @@ public enum TaskState implements StatusEnum {
|
||||
case InternalError:
|
||||
case Canceled:
|
||||
case DoneWithDiffs:
|
||||
case NaN:
|
||||
return VisualiserFonts.BadState;
|
||||
case Queued:
|
||||
case Running:
|
||||
@@ -149,6 +154,7 @@ public enum TaskState implements StatusEnum {
|
||||
case Crushed:
|
||||
case InternalError:
|
||||
case Canceled:
|
||||
case NaN:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user