Get Returns the argument at the specified index.
(index int)
| 932 | |
| 933 | // Get Returns the argument at the specified index. |
| 934 | func (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. |
| 942 | func (args Arguments) Is(objects ...interface{}) bool { |
no outgoing calls