(string2 string)
| 162 | } |
| 163 | |
| 164 | func ParseStatus(string2 string) Status { |
| 165 | switch string2 { |
| 166 | case "enable", "0": |
| 167 | return Enable |
| 168 | case "disable", "2": |
| 169 | return Disable |
| 170 | case "global", "1": |
| 171 | return Global |
| 172 | default: |
| 173 | return unKnownStatus |
| 174 | } |
| 175 | } |
no outgoing calls
no test coverage detected