mirror of
https://github.com/volatiletech/authboss.git
synced 2024-11-24 08:42:17 +02:00
Move mocks so external packages can use them
This commit is contained in:
parent
4a8ff134bb
commit
a7b9d57691
@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestAuthInit(t *testing.T) {
|
||||
|
@ -11,7 +11,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestInit(t *testing.T) {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
type testRenderer struct {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestHTTPBodyReaderLogin(t *testing.T) {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestExpireIsExpired(t *testing.T) {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestInit(t *testing.T) {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestLogout(t *testing.T) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
"golang.org/x/oauth2"
|
||||
"golang.org/x/oauth2/facebook"
|
||||
"golang.org/x/oauth2/google"
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
type testUser struct {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
type smsHolderSender string
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
|
||||
"github.com/pquerna/otp/totp"
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestTOTPSetup(t *testing.T) {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestSetup(t *testing.T) {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestSetupEmailVerify(t *testing.T) {
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestRegisterInit(t *testing.T) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/volatiletech/authboss"
|
||||
"github.com/volatiletech/authboss/internal/mocks"
|
||||
"github.com/volatiletech/authboss/mocks"
|
||||
)
|
||||
|
||||
func TestInit(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user