(s string)
| 31 | } |
| 32 | |
| 33 | func ToScope(s string) Scope { |
| 34 | switch s { |
| 35 | case ScopeGlobal: |
| 36 | return 0 |
| 37 | case ScopeTeam: |
| 38 | return 1 |
| 39 | case ScopeService: |
| 40 | return 2 |
| 41 | default: |
| 42 | return 0 |
| 43 | } |
| 44 | } |
nothing calls this directly
no outgoing calls
no test coverage detected