github.com/terramate-io/tf@v0.0.0-20230830114523-fce866b4dfcd/addrs/checkruletype_string.go (about)

     1  // Code generated by "stringer -type=CheckRuleType check_rule.go"; DO NOT EDIT.
     2  
     3  package addrs
     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[InvalidCondition-0]
    12  	_ = x[ResourcePrecondition-1]
    13  	_ = x[ResourcePostcondition-2]
    14  	_ = x[OutputPrecondition-3]
    15  	_ = x[CheckDataResource-4]
    16  	_ = x[CheckAssertion-5]
    17  	_ = x[InputValidation-6]
    18  }
    19  
    20  const _CheckRuleType_name = "InvalidConditionResourcePreconditionResourcePostconditionOutputPreconditionCheckDataResourceCheckAssertionInputValidation"
    21  
    22  var _CheckRuleType_index = [...]uint8{0, 16, 36, 57, 75, 92, 106, 121}
    23  
    24  func (i CheckRuleType) String() string {
    25  	if i < 0 || i >= CheckRuleType(len(_CheckRuleType_index)-1) {
    26  		return "CheckRuleType(" + strconv.FormatInt(int64(i), 10) + ")"
    27  	}
    28  	return _CheckRuleType_name[_CheckRuleType_index[i]:_CheckRuleType_index[i+1]]
    29  }