()
| 87 | } |
| 88 | |
| 89 | func (s ApprovalType) Int() int { |
| 90 | switch s { |
| 91 | case "auto": |
| 92 | return 1 |
| 93 | case "manual": |
| 94 | return 0 |
| 95 | default: |
| 96 | return 0 |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | func ToApprovalType(s int) ApprovalType { |
| 101 | switch s { |
nothing calls this directly
no outgoing calls
no test coverage detected