(status int)
| 32 | } |
| 33 | |
| 34 | func ToKeyStatus(status int) KeyStatus { |
| 35 | switch status { |
| 36 | case 0: |
| 37 | return KeyDisable |
| 38 | case 1: |
| 39 | return KeyNormal |
| 40 | case 2: |
| 41 | return KeyError |
| 42 | case 3: |
| 43 | return KeyExceed |
| 44 | case 4: |
| 45 | return KeyExpired |
| 46 | default: |
| 47 | return KeyDisable |
| 48 | } |
| 49 | } |
nothing calls this directly
no outgoing calls
no test coverage detected