IsValid returns whether the value is a valid option for type TestEnum.
()
| 102 | // IsValid returns whether the value is a |
| 103 | // valid option for type TestEnum. |
| 104 | func (i TestEnum) IsValid() bool { |
| 105 | _, ok := _TestEnumMap[i] |
| 106 | return ok |
| 107 | } |
| 108 | |
| 109 | // MarshalText implements the [encoding.TextMarshaler] interface. |
| 110 | func (i TestEnum) MarshalText() ([]byte, error) { |
no outgoing calls
no test coverage detected