MCPcopy
hub / github.com/stretchr/testify / newCall

Function newCall

mock/mock.go:83–95  ·  view source on GitHub ↗
(parent *Mock, methodName string, callerInfo []string, methodArguments Arguments, returnArguments Arguments)

Source from the content-addressed store, hash-verified

81}
82
83func newCall(parent *Mock, methodName string, callerInfo []string, methodArguments Arguments, returnArguments Arguments) *Call {
84 return &Call{
85 Parent: parent,
86 Method: methodName,
87 Arguments: methodArguments,
88 ReturnArguments: returnArguments,
89 callerInfo: callerInfo,
90 Repeatability: 0,
91 WaitFor: nil,
92 RunFn: nil,
93 PanicMsg: nil,
94 }
95}
96
97func (c *Call) lock() {
98 c.Parent.mutex.Lock()

Callers 2

OnMethod · 0.85
MethodCalledMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected