func (mock *ProviderMock) GetUserCalls() []struct {
	Email string
} {
	var calls []struct {
		Email string
	}
	mock.lockGetUser.RLock()
	calls = mock.calls.GetUser
	mock.lockGetUser.RUnlock()
	return calls
}
GetUserCalls gets all the calls that were made to GetUser.
Check the length with:
len(mockedProvider.GetUserCalls())
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)
}
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
}
func (mock *ProviderMock) DeleteUser(email string) error {
	if mock.DeleteUserFunc == nil {
		panic("ProviderMock.DeleteUserFunc: method is nil but Provider.DeleteUser was just called")
	}
	callInfo := struct {
		Email string
	}{
		Email: email,
	}
	mock.lockDeleteUser.Lock()
	mock.calls.DeleteUser = append(mock.calls.DeleteUser, callInfo)
	mock.lockDeleteUser.Unlock()
	return mock.DeleteUserFunc(email)
}
func (mock *ProviderMock) DeleteUserCalls() []struct {
	Email string
} {
	var calls []struct {
		Email string
	}
	mock.lockDeleteUser.RLock()
	calls = mock.calls.DeleteUser
	mock.lockDeleteUser.RUnlock()
	return calls
}
func (mock *ProviderMock) GetUser(email string) (internal.User, error) {
	if mock.GetUserFunc == nil {
		panic("ProviderMock.GetUserFunc: method is nil but Provider.GetUser was just called")
	}
	callInfo := struct {
		Email string
	}{
		Email: email,
	}
	mock.lockGetUser.Lock()
	mock.calls.GetUser = append(mock.calls.GetUser, callInfo)
	mock.lockGetUser.Unlock()
	return mock.GetUserFunc(email)
}