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

Method Alias

match.go:84–90  ·  view source on GitHub ↗

Alias is similar to Value.Alias.

(name string)

Source from the content-addressed store, hash-verified

82
83// Alias is similar to Value.Alias.
84func (m *Match) Alias(name string) *Match {
85 opChain := m.chain.enter("Alias(%q)", name)
86 defer opChain.leave()
87
88 m.chain.setAlias(name)
89 return m
90}
91
92// Length returns a new Number instance with number of submatches.
93//

Callers 1

TestMatch_AliasFunction · 0.95

Calls 3

enterMethod · 0.80
leaveMethod · 0.80
setAliasMethod · 0.80

Tested by 1

TestMatch_AliasFunction · 0.76