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

Method Alias

string.go:86–92  ·  view source on GitHub ↗

Alias is similar to Value.Alias.

(name string)

Source from the content-addressed store, hash-verified

84
85// Alias is similar to Value.Alias.
86func (s *String) Alias(name string) *String {
87 opChain := s.chain.enter("Alias(%q)", name)
88 defer opChain.leave()
89
90 s.chain.setAlias(name)
91 return s
92}
93
94// Path is similar to Value.Path.
95func (s *String) Path(path string) *Value {

Callers 1

TestString_AliasFunction · 0.95

Calls 3

enterMethod · 0.80
leaveMethod · 0.80
setAliasMethod · 0.80

Tested by 1

TestString_AliasFunction · 0.76