func (mock *ProviderMock) CreateUserCalls() []struct {
	User internal.User
} {
	var calls []struct {
		User internal.User
	}
	mock.lockCreateUser.RLock()
	calls = mock.calls.CreateUser
	mock.lockCreateUser.RUnlock()
	return calls
}
CreateUserCalls gets all the calls that were made to CreateUser.
Check the length with:
len(mockedProvider.CreateUserCalls())
package web
import (
	"github.com/leberKleber/simple-jwt-provider/internal"
	"sync"
)
var _ Provider = &ProviderMock{}
type ProviderMock struct {
	CreatePasswordResetRequestFunc func(email string) error
	CreateUserFunc func(user internal.User) error
	DeleteUserFunc func(email string) error
	GetUserFunc func(email string) (internal.User, error)
	LoginFunc func(email string, password string) (string, string, error)
	RefreshFunc func(refreshToken string) (string, string, error)
	ResetPasswordFunc func(email string, resetToken string, password string) error
	UpdateUserFunc func(email string, user internal.User) (internal.User, error)
	calls struct {
		CreatePasswordResetRequest []struct {
			Email string
		}
		CreateUser []struct {
			User internal.User
		}
		DeleteUser []struct {
			Email string
		}
		GetUser []struct {
			Email string
		}
		Login []struct {
			Email string
			Password string
		}
		Refresh []struct {
			RefreshToken string
		}
		ResetPassword []struct {
			Email string
			ResetToken string
			Password string
		}
		UpdateUser []struct {
			Email string
			User internal.User
		}
	}
	lockCreatePasswordResetRequest sync.RWMutex
	lockCreateUser                 sync.RWMutex
	lockDeleteUser                 sync.RWMutex
	lockGetUser                    sync.RWMutex
	lockLogin                      sync.RWMutex
	lockRefresh                    sync.RWMutex
	lockResetPassword              sync.RWMutex
	lockUpdateUser                 sync.RWMutex
}
func (mock *ProviderMock) CreatePasswordResetRequest(email string) error {
	if mock.CreatePasswordResetRequestFunc == nil {
		panic("ProviderMock.CreatePasswordResetRequestFunc: method is nil but Provider.CreatePasswordResetRequest was just called")
	}
	callInfo := struct {
		Email string
	}{
		Email: email,
	}
	mock.lockCreatePasswordResetRequest.Lock()
	mock.calls.CreatePasswordResetRequest = append(mock.calls.CreatePasswordResetRequest, callInfo)
	mock.lockCreatePasswordResetRequest.Unlock()
	return mock.CreatePasswordResetRequestFunc(email)
}
func (mock *ProviderMock) CreatePasswordResetRequestCalls() []struct {
	Email string
} {
	var calls []struct {
		Email string
	}
	mock.lockCreatePasswordResetRequest.RLock()
	calls = mock.calls.CreatePasswordResetRequest
	mock.lockCreatePasswordResetRequest.RUnlock()
	return calls
}
func (mock *ProviderMock) CreateUser(user internal.User) error {
	if mock.CreateUserFunc == nil {
		panic("ProviderMock.CreateUserFunc: method is nil but Provider.CreateUser was just called")
	}
	callInfo := struct {
		User internal.User
	}{
		User: user,
	}
	mock.lockCreateUser.Lock()
	mock.calls.CreateUser = append(mock.calls.CreateUser, callInfo)
	mock.lockCreateUser.Unlock()
	return mock.CreateUserFunc(user)
}