()
| 9 | type ProviderStatus string |
| 10 | |
| 11 | func (p ProviderStatus) Int() int { |
| 12 | switch p { |
| 13 | case ProviderAbnormal: |
| 14 | return 2 |
| 15 | case ProviderEnabled: |
| 16 | return 1 |
| 17 | case ProviderDisabled: |
| 18 | return 0 |
| 19 | default: |
| 20 | return 1 |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func (p ProviderStatus) String() string { |
| 25 | return string(p) |
nothing calls this directly
no outgoing calls
no test coverage detected