github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/pkg/fuzzer/queue/status_string.go (about)

     1  // Code generated by "stringer -type Status"; DO NOT EDIT.
     2  
     3  package queue
     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[Success-0]
    12  	_ = x[ExecFailure-1]
    13  	_ = x[Crashed-2]
    14  	_ = x[Restarted-3]
    15  	_ = x[Hanged-4]
    16  }
    17  
    18  const _Status_name = "SuccessExecFailureCrashedRestartedHanged"
    19  
    20  var _Status_index = [...]uint8{0, 7, 18, 25, 34, 40}
    21  
    22  func (i Status) String() string {
    23  	idx := int(i) - 0
    24  	if i < 0 || idx >= len(_Status_index)-1 {
    25  		return "Status(" + strconv.FormatInt(int64(i), 10) + ")"
    26  	}
    27  	return _Status_name[_Status_index[idx]:_Status_index[idx+1]]
    28  }