MCPcopy
hub / github.com/spf13/pflag / cmpLists

Function cmpLists

func_test.go:8–18  ·  view source on GitHub ↗
(a, b []string)

Source from the content-addressed store, hash-verified

6)
7
8func cmpLists(a, b []string) bool {
9 if len(a) != len(b) {
10 return false
11 }
12 for i := range a {
13 if a[i] != b[i] {
14 return false
15 }
16 }
17 return true
18}
19
20func TestFunc(t *testing.T) {
21 var values []string

Callers 4

TestBoolFuncCompatFunction · 0.85
TestFuncFunction · 0.85
TestFuncPFunction · 0.85
TestFuncCompatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected