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

Function fileAsString

integration/v7/isolated/oauth_client_test.go:16–21  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

14)
15
16func fileAsString(path string) string {
17 configBytes, err := os.ReadFile(path)
18 Expect(err).ToNot(HaveOccurred())
19
20 return string(configBytes)
21}
22
23func replaceConfig(path string, old string, new string) {
24 r := regexp.MustCompile(old)

Callers 2

replaceConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected