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

Method Get

mock/mock.go:934–939  ·  view source on GitHub ↗

Get Returns the argument at the specified index.

(index int)

Source from the content-addressed store, hash-verified

932
933// Get Returns the argument at the specified index.
934func (args Arguments) Get(index int) interface{} {
935 if index+1 > len(args) {
936 panic(fmt.Sprintf("assert: arguments: Cannot call Get(%d) because there are %d argument(s).", index, len(args)))
937 }
938 return args[index]
939}
940
941// Is gets whether the objects match the arguments specified.
942func (args Arguments) Is(objects ...interface{}) bool {

Callers 12

StringMethod · 0.95
IntMethod · 0.95
ErrorMethod · 0.95
BoolMethod · 0.95
TestFailfastSuiteFunction · 0.80
RoundTripMethod · 0.80
Test_Mock_TestDataFunction · 0.80
Test_Mock_Return_RunFunction · 0.80
Test_Arguments_GetFunction · 0.80
GetTimeMethod · 0.80
GetTimesMethod · 0.80

Calls

no outgoing calls

Tested by 7

TestFailfastSuiteFunction · 0.64
Test_Mock_TestDataFunction · 0.64
Test_Mock_Return_RunFunction · 0.64
Test_Arguments_GetFunction · 0.64
GetTimeMethod · 0.64
GetTimesMethod · 0.64