synapsecns/sanguine

View on GitHub
services/rfq/guard/guarddb/pendingprovenstatus_string.go

Summary

Maintainability
A
2 hrs
Test Coverage
// Code generated by "stringer -type=PendingProvenStatus"; DO NOT EDIT.

package guarddb

import "strconv"

func _() {
    // An "invalid array index" compiler error signifies that the constant values have changed.
    // Re-run the stringer command to generate them again.
    var x [1]struct{}
    _ = x[ProveCalled-1]
    _ = x[Validated-2]
    _ = x[DisputePending-3]
    _ = x[Disputed-4]
}

const _PendingProvenStatus_name = "ProveCalledValidatedDisputePendingDisputed"

var _PendingProvenStatus_index = [...]uint8{0, 11, 20, 34, 42}

func (i PendingProvenStatus) String() string {
    i -= 1
    if i >= PendingProvenStatus(len(_PendingProvenStatus_index)-1) {
        return "PendingProvenStatus(" + strconv.FormatInt(int64(i+1), 10) + ")"
    }
    return _PendingProvenStatus_name[_PendingProvenStatus_index[i]:_PendingProvenStatus_index[i+1]]
}