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

Method setRoot

chain.go:188–197  ·  view source on GitHub ↗

Make this chain to be root. Chain's parent field is cleared. Failures wont be propagated to the upper chains anymore.

()

Source from the content-addressed store, hash-verified

186// Chain's parent field is cleared.
187// Failures wont be propagated to the upper chains anymore.
188func (c *chain) setRoot() {
189 c.mu.Lock()
190 defer c.mu.Unlock()
191
192 if chainValidation && c.state == stateLeaved {
193 panic("can't use chain after leave")
194 }
195
196 c.parent = nil
197}
198
199// Set severity of reported failures.
200// Chain always overrides failure severity with configured one.

Callers 10

TestChain_BasicFunction · 0.80
TestChain_PanicsFunction · 0.80
FilterMethod · 0.80
FindMethod · 0.80
FindAllMethod · 0.80
NotFindMethod · 0.80
FilterMethod · 0.80
FindMethod · 0.80
FindAllMethod · 0.80
NotFindMethod · 0.80

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 2

TestChain_BasicFunction · 0.64
TestChain_PanicsFunction · 0.64