title: Mocking via stretchr/testify, different return args
body: <p>Function below describes how to mock using testify. <code>args.Bool(0)</code>, <code>args.Error(1)</code> are mocked positional return values.</p>
  
  <pre><code>func (m *MyMockedObject) DoSomething(number int) (bool, error) {
  
    args := m.Called(number)
    return args.Bool(0), args.Error(1)
  
  }
  </code></pre>
  
  <p><strong>Is it possible to return anything other than</strong> <code>args.Int()</code>, <code>args.Bool()</code>, <code>args.String()</code>? What if I need to return <code>int64</code>, or a custom <code>struct</code>. Is there a method or am I missing something? </p>
  
  <p>For example:</p>
  
  <pre><code>func (m *someMock) doStuff(p *sql.DB, id int) (res int64, err error)
  </code></pre>