code: func (m *Mock) AssertNumberOfCalls(t TestingT, methodName string, expectedCalls int) bool {
  	if h, ok := t.(tHelper); ok {
  		h.Helper()
  	}
  	m.mutex.Lock()
  	defer m.mutex.Unlock()
  	var actualCalls int
  	for _, call := range m.calls() {
  		if call.Method == methodName {
  			actualCalls++
  		}
  	}
  	return assert.Equal(t, expectedCalls, actualCalls, fmt.Sprintf("Expected number of calls (%d) does not match the actual number of calls (%d).", expectedCalls, actualCalls))
  }
docs: // AssertNumberOfCalls asserts that the method was called expectedCalls times.