MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / NewCustomTokenFactory

Function NewCustomTokenFactory

testutil/test_token_factory.go:9–11  ·  view source on GitHub ↗

NewCustomTokenFactory represents mock of the TokenFactory

(token string)

Source from the content-addressed store, hash-verified

7
8// NewCustomTokenFactory represents mock of the TokenFactory
9func NewCustomTokenFactory(token string) baseclient.TokenFactory {
10 return &customTokenFactory{tokenString: token}
11}
12
13type customTokenFactory struct {
14 tokenString string

Callers 2

newRetryableRestClientFunction · 0.92
newRestClientFunction · 0.92

Calls

no outgoing calls

Tested by 2

newRetryableRestClientFunction · 0.74
newRestClientFunction · 0.74