| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 1 | // Code generated by "stringer -type=testStatus -trimprefix=testStatus"; DO NOT EDIT. |
| 2 | |
| Josh Bleecher Snyder | f4047bb | 2025-05-05 23:02:56 +0000 | [diff] [blame] | 3 | package codereview |
| Josh Bleecher Snyder | 833a0f8 | 2025-04-24 18:39:36 +0000 | [diff] [blame] | 4 | |
| 5 | import "strconv" |
| 6 | |
| 7 | func _() { |
| 8 | // An "invalid array index" compiler error signifies that the constant values have changed. |
| 9 | // Re-run the stringer command to generate them again. |
| 10 | var x [1]struct{} |
| 11 | _ = x[testStatusUnknown-0] |
| 12 | _ = x[testStatusPass-1] |
| 13 | _ = x[testStatusFail-2] |
| 14 | _ = x[testStatusBuildFail-3] |
| 15 | _ = x[testStatusSkip-4] |
| 16 | _ = x[testStatusNoTests-5] |
| 17 | } |
| 18 | |
| 19 | const _testStatus_name = "UnknownPassFailBuildFailSkipNoTests" |
| 20 | |
| 21 | var _testStatus_index = [...]uint8{0, 7, 11, 15, 24, 28, 35} |
| 22 | |
| 23 | func (i testStatus) String() string { |
| 24 | if i < 0 || i >= testStatus(len(_testStatus_index)-1) { |
| 25 | return "testStatus(" + strconv.FormatInt(int64(i), 10) + ")" |
| 26 | } |
| 27 | return _testStatus_name[_testStatus_index[i]:_testStatus_index[i+1]] |
| 28 | } |