MCPcopy Create free account
hub / github.com/coregx/coregex / equalNestedByteSlices

Function equalNestedByteSlices

fuzz_stdlib_test.go:782–792  ·  view source on GitHub ↗

equalNestedByteSlices compares two [][][]byte for equality

(a, b [][][]byte)

Source from the content-addressed store, hash-verified

780
781// equalNestedByteSlices compares two [][][]byte for equality
782func equalNestedByteSlices(a, b [][][]byte) bool {
783 if len(a) != len(b) {
784 return false
785 }
786 for i := range a {
787 if !equalByteSlices(a[i], b[i]) {
788 return false
789 }
790 }
791 return true
792}
793
794// toStringSlice converts [][]byte to []string for better error messages
795func toStringSlice(b [][]byte) []string {

Callers 1

Calls 1

equalByteSlicesFunction · 0.85

Tested by

no test coverage detected