=========================================================================== Helper Functions =========================================================================== equalByteSlices compares two [][]byte for equality
(a, b [][]byte)
| 767 | |
| 768 | // equalByteSlices compares two [][]byte for equality |
| 769 | func equalByteSlices(a, b [][]byte) bool { |
| 770 | if len(a) != len(b) { |
| 771 | return false |
| 772 | } |
| 773 | for i := range a { |
| 774 | if !bytes.Equal(a[i], b[i]) { |
| 775 | return false |
| 776 | } |
| 777 | } |
| 778 | return true |
| 779 | } |
| 780 | |
| 781 | // equalNestedByteSlices compares two [][][]byte for equality |
| 782 | func equalNestedByteSlices(a, b [][][]byte) bool { |
no outgoing calls
no test coverage detected