MCPcopy Create free account
hub / github.com/gavv/httpexpect / Alias

Method Alias

object.go:120–126  ·  view source on GitHub ↗

Alias is similar to Value.Alias.

(name string)

Source from the content-addressed store, hash-verified

118
119// Alias is similar to Value.Alias.
120func (o *Object) Alias(name string) *Object {
121 opChain := o.chain.enter("Alias(%q)", name)
122 defer opChain.leave()
123
124 o.chain.setAlias(name)
125 return o
126}
127
128// Path is similar to Value.Path.
129func (o *Object) Path(path string) *Value {

Callers 1

TestObject_AliasFunction · 0.95

Calls 3

enterMethod · 0.80
leaveMethod · 0.80
setAliasMethod · 0.80

Tested by 1

TestObject_AliasFunction · 0.76