MCPcopy
hub / github.com/digitalocean/doctl / GetString

Method GetString

doit.go:572–575  ·  view source on GitHub ↗

GetString returns the string value for the key in the given namespace. Because this is a mock implementation, and error will never be returned.

(ns, key string)

Source from the content-addressed store, hash-verified

570// GetString returns the string value for the key in the given namespace. Because
571// this is a mock implementation, and error will never be returned.
572func (c *TestConfig) GetString(ns, key string) (string, error) {
573 nskey := nskey(ns, key)
574 return c.v.GetString(nskey), nil
575}
576
577// GetInt returns the int value for the key in the given namespace. Because
578// this is a mock implementation, and error will never be returned.

Callers

nothing calls this directly

Calls 2

nskeyFunction · 0.85
GetStringMethod · 0.65

Tested by

no test coverage detected