Is gets whether the objects match the arguments specified.
(objects ...interface{})
| 940 | |
| 941 | // Is gets whether the objects match the arguments specified. |
| 942 | func (args Arguments) Is(objects ...interface{}) bool { |
| 943 | for i, obj := range args { |
| 944 | if obj != objects[i] { |
| 945 | return false |
| 946 | } |
| 947 | } |
| 948 | return true |
| 949 | } |
| 950 | |
| 951 | // Diff gets a string describing the differences between the arguments |
| 952 | // and the specified objects. |
no outgoing calls