MCPcopy
hub / github.com/buger/jsonparser / sameTree

Function sameTree

parser.go:381–394  ·  view source on GitHub ↗

SYS-REQ-008

(p1, p2 []string)

Source from the content-addressed store, hash-verified

379
380// SYS-REQ-008
381func sameTree(p1, p2 []string) bool {
382 minLen := len(p1)
383 if len(p2) < minLen {
384 minLen = len(p2)
385 }
386
387 for pi_1, p_1 := range p1[:minLen] {
388 if p2[pi_1] != p_1 {
389 return false
390 }
391 }
392
393 return true
394}
395
396const stackArraySize = 128
397

Callers 1

EachKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…