MCPcopy
hub / github.com/cloudfoundry/cli / SayPath

Function SayPath

integration/helpers/matchers.go:14–21  ·  view source on GitHub ↗

SayPath is used to assert that a path is printed within streaming output. On Windows, it uses a case-insensitive match and escapes the path.

(format string, path string)

Source from the content-addressed store, hash-verified

12// SayPath is used to assert that a path is printed within streaming output.
13// On Windows, it uses a case-insensitive match and escapes the path.
14func SayPath(format string, path string) types.GomegaMatcher {
15 if runtime.GOOS == "windows" {
16 expected := "(?i)" + format
17 expected = fmt.Sprintf(expected, regexp.QuoteMeta(path))
18 return gbytes.Say(expected)
19 }
20 return gbytes.Say(format, path)
21}

Calls 1

SayMethod · 0.65

Tested by 1