MCPcopy Index your code
hub / github.com/gavv/httpexpect / NewStringC

Function NewStringC

string.go:40–42  ·  view source on GitHub ↗

NewStringC returns a new String instance with config. Requirements for config are same as for WithConfig function. Example: str := NewStringC(config, "Hello")

(config Config, value string)

Source from the content-addressed store, hash-verified

38//
39// str := NewStringC(config, "Hello")
40func NewStringC(config Config, value string) *String {
41 return newString(newChainWithConfig("String()", config.withDefaults()), value)
42}
43
44func newString(parent *chain, val string) *String {
45 return &String{chain: parent.clone(), value: val}

Callers 1

TestString_ConstructorsFunction · 0.85

Calls 3

newStringFunction · 0.85
newChainWithConfigFunction · 0.85
withDefaultsMethod · 0.80

Tested by 1

TestString_ConstructorsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…