MCPcopy
hub / github.com/go-chi/chi / stringSliceEqual

Function stringSliceEqual

tree_test.go:475–485  ·  view source on GitHub ↗
(a, b []string)

Source from the content-addressed store, hash-verified

473}
474
475func stringSliceEqual(a, b []string) bool {
476 if len(a) != len(b) {
477 return false
478 }
479 for i := range a {
480 if b[i] != a[i] {
481 return false
482 }
483 }
484 return true
485}
486
487func BenchmarkTreeGet(b *testing.B) {
488 h1 := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {})

Callers 4

TestTreeFunction · 0.85
TestTreeMoarFunction · 0.85
TestTreeRegexpFunction · 0.85
TestTreeRegexpRecursiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected