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

Function NewString

string.go:29–31  ·  view source on GitHub ↗

NewString returns a new String instance. If reporter is nil, the function panics. Example: str := NewString(t, "Hello")

(reporter Reporter, value string)

Source from the content-addressed store, hash-verified

27//
28// str := NewString(t, "Hello")
29func NewString(reporter Reporter, value string) *String {
30 return newString(newChainWithDefaults("String()", reporter), value)
31}
32
33// NewStringC returns a new String instance with config.
34//

Callers 15

TestString_ConstructorsFunction · 0.85
TestString_RawFunction · 0.85
TestString_DecodeFunction · 0.85
TestString_AliasFunction · 0.85
TestString_PathFunction · 0.85
TestString_SchemaFunction · 0.85
TestString_GettersFunction · 0.85
TestString_IsEmptyFunction · 0.85
TestString_IsEqualFunction · 0.85
TestString_InListFunction · 0.85
TestString_ContainsFunction · 0.85
TestString_HasPrefixFunction · 0.85

Calls 2

newStringFunction · 0.85
newChainWithDefaultsFunction · 0.85

Tested by 15

TestString_ConstructorsFunction · 0.68
TestString_RawFunction · 0.68
TestString_DecodeFunction · 0.68
TestString_AliasFunction · 0.68
TestString_PathFunction · 0.68
TestString_SchemaFunction · 0.68
TestString_GettersFunction · 0.68
TestString_IsEmptyFunction · 0.68
TestString_IsEqualFunction · 0.68
TestString_InListFunction · 0.68
TestString_ContainsFunction · 0.68
TestString_HasPrefixFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…