Description

Return specifies the return arguments for the expectation.

Mock.On("DoSomething").Return(errors.New("failed"))

Return is referenced in 175 repositories

github.com/stretchr/testify github.com/Workiva/go-rest github.com/vektra/strive

...