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

Function GetsEnablementValue

integration/helpers/ssh_command.go:9–17  ·  view source on GitHub ↗
(stream []byte)

Source from the content-addressed store, hash-verified

7)
8
9func GetsEnablementValue(stream []byte) bool {
10 enablementResponse := struct {
11 Enabled bool `json:"enabled"`
12 }{}
13
14 Expect(json.Unmarshal(stream, &enablementResponse)).To(Succeed())
15
16 return enablementResponse.Enabled
17}

Calls

no outgoing calls

Tested by

no test coverage detected