combineErr returns the first non-nil of decode, verify. Decode failure is treated the same way as a verify failure.
(decode, verify error)
| 165 | // combineErr returns the first non-nil of decode, verify. |
| 166 | // Decode failure is treated the same way as a verify failure. |
| 167 | func combineErr(decode, verify error) error { |
| 168 | if decode != nil { |
| 169 | return decode |
| 170 | } |
| 171 | return verify |
| 172 | } |
| 173 | |
| 174 | // assertSameVerdict fails the test unless both verifiers agree on |
| 175 | // success-or-failure. It does not compare error messages, only verdicts. |
no outgoing calls
no test coverage detected
searching dependent graphs…