Description

Once indicates that that the mock should only return the value once.

Mock.On("MyMethod", arg1, arg2).Return(returnArg1, returnArg2).Once()

Once is referenced in 46 repositories

github.com/stretchr/testify github.com/flier/curator.go github.com/curator-go/curator

...