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

Method Alias

array.go:111–117  ·  view source on GitHub ↗

Alias is similar to Value.Alias.

(name string)

Source from the content-addressed store, hash-verified

109
110// Alias is similar to Value.Alias.
111func (a *Array) Alias(name string) *Array {
112 opChain := a.chain.enter("Alias(%q)", name)
113 defer opChain.leave()
114
115 a.chain.setAlias(name)
116 return a
117}
118
119// Path is similar to Value.Path.
120func (a *Array) Path(path string) *Value {

Callers 1

TestArray_AliasFunction · 0.95

Calls 3

enterMethod · 0.80
leaveMethod · 0.80
setAliasMethod · 0.80

Tested by 1

TestArray_AliasFunction · 0.76