MCPcopy Create free account
hub / github.com/Facets-cloud/flow / containsArg

Function containsArg

internal/app/background_test.go:404–411  ·  view source on GitHub ↗

---- helpers ----

(ss []string, want string)

Source from the content-addressed store, hash-verified

402// ---- helpers ----
403
404func containsArg(ss []string, want string) bool {
405 for _, s := range ss {
406 if s == want {
407 return true
408 }
409 }
410 return false
411}
412
413func pairArg(ss []string, flag, val string) bool {
414 for i := 0; i+1 < len(ss); i++ {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected