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

Side by Side Diff: milo/api/resp/status_string.go

Issue 2944633003: [milo] Add BuildSummary and common models. (Closed)
Patch Set: add comments Created 3 years, 6 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
« no previous file with comments | « milo/api/resp/console.go ('k') | milo/api/resp/verbosity_string.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Code generated by "stringer -type=Status,ComponentType,Verbosity"; DO NOT EDI T.
2
3 package resp
4
5 import "fmt"
6
7 const _Status_name = "NotRunRunningSuccessFailureWarningInfraFailureExceptionExp iredDependencyFailureWaitingDependency"
8
9 var _Status_index = [...]uint8{0, 6, 13, 20, 27, 34, 46, 55, 62, 79, 96}
10
11 func (i Status) String() string {
12 if i < 0 || i >= Status(len(_Status_index)-1) {
13 return fmt.Sprintf("Status(%d)", i)
14 }
15 return _Status_name[_Status_index[i]:_Status_index[i+1]]
16 }
17
18 const _ComponentType_name = "RecipeStepSummary"
19
20 var _ComponentType_index = [...]uint8{0, 6, 10, 17}
21
22 func (i ComponentType) String() string {
23 if i < 0 || i >= ComponentType(len(_ComponentType_index)-1) {
24 return fmt.Sprintf("ComponentType(%d)", i)
25 }
26 return _ComponentType_name[_ComponentType_index[i]:_ComponentType_index[ i+1]]
27 }
28
29 const _Verbosity_name = "NormalHiddenInteresting"
30
31 var _Verbosity_index = [...]uint8{0, 6, 12, 23}
32
33 func (i Verbosity) String() string {
34 if i < 0 || i >= Verbosity(len(_Verbosity_index)-1) {
35 return fmt.Sprintf("Verbosity(%d)", i)
36 }
37 return _Verbosity_name[_Verbosity_index[i]:_Verbosity_index[i+1]]
38 }
OLDNEW
« no previous file with comments | « milo/api/resp/console.go ('k') | milo/api/resp/verbosity_string.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698