assertionseverity_string.go 724 B

123456789101112131415161718192021222324
  1. // Code generated by "stringer -type=AssertionSeverity"; DO NOT EDIT.
  2. package httpexpect
  3. import "strconv"
  4. func _() {
  5. // An "invalid array index" compiler error signifies that the constant values have changed.
  6. // Re-run the stringer command to generate them again.
  7. var x [1]struct{}
  8. _ = x[SeverityError-0]
  9. _ = x[SeverityLog-1]
  10. }
  11. const _AssertionSeverity_name = "SeverityErrorSeverityLog"
  12. var _AssertionSeverity_index = [...]uint8{0, 13, 24}
  13. func (i AssertionSeverity) String() string {
  14. if i >= AssertionSeverity(len(_AssertionSeverity_index)-1) {
  15. return "AssertionSeverity(" + strconv.FormatInt(int64(i), 10) + ")"
  16. }
  17. return _AssertionSeverity_name[_AssertionSeverity_index[i]:_AssertionSeverity_index[i+1]]
  18. }