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

Method Alias

number.go:82–88  ·  view source on GitHub ↗

Alias is similar to Value.Alias.

(name string)

Source from the content-addressed store, hash-verified

80
81// Alias is similar to Value.Alias.
82func (n *Number) Alias(name string) *Number {
83 opChain := n.chain.enter("Alias(%q)", name)
84 defer opChain.leave()
85
86 n.chain.setAlias(name)
87 return n
88}
89
90// Path is similar to Value.Path.
91func (n *Number) Path(path string) *Value {

Callers 1

TestNumber_AliasFunction · 0.95

Calls 3

enterMethod · 0.80
leaveMethod · 0.80
setAliasMethod · 0.80

Tested by 1

TestNumber_AliasFunction · 0.76