Description

On chains a new expectation description onto the mocked interface. This allows syntax like.

Mock.
   On("MyMethod", 1).Return(nil).
   On("MyOtherMethod", 'a', 'b', 'c').Return(errors.New("Some Error"))

On is referenced in 0 repositories