OLD | NEW |
1 // Code generated by "stringer -type=State"; DO NOT EDIT | 1 // Code generated by "stringer -type=State"; DO NOT EDIT |
2 | 2 |
3 package execution | 3 package execution |
4 | 4 |
5 import "fmt" | 5 import "fmt" |
6 | 6 |
7 const _State_name = "UnknownStateScheduledRunningRejectedFinishedCrashed" | 7 const _State_name = "UnknownScheduledStartedRejectedTimedOutFinishedFailedMissin
gCancelled" |
8 | 8 |
9 var _State_index = [...]uint8{0, 12, 21, 28, 36, 44, 51} | 9 var _State_index = [...]uint8{0, 7, 16, 23, 31, 39, 47, 53, 60, 69} |
10 | 10 |
11 func (i State) String() string { | 11 func (i State) String() string { |
12 if i < 0 || i >= State(len(_State_index)-1) { | 12 if i < 0 || i >= State(len(_State_index)-1) { |
13 return fmt.Sprintf("State(%d)", i) | 13 return fmt.Sprintf("State(%d)", i) |
14 } | 14 } |
15 return _State_name[_State_index[i]:_State_index[i+1]] | 15 return _State_name[_State_index[i]:_State_index[i+1]] |
16 } | 16 } |
OLD | NEW |