Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: appengine/cmd/dm/enums/execution/state_string.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: work in progress Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698