()
| 30 | } |
| 31 | |
| 32 | func (e *CommitMismatchError) Error() string { |
| 33 | if e.message != "" { |
| 34 | return e.message |
| 35 | } |
| 36 | return fmt.Sprintf("commit mismatch: expected=%x, found=%x", e.expected, e.found) |
| 37 | } |
| 38 | |
| 39 | func CompareCommits(expected, found []byte) error { |
| 40 | if len(expected) < HashSizeInContract { |
no outgoing calls
no test coverage detected