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"
|
"testing"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAuthInit(t *testing.T) {
|
func TestAuthInit(t *testing.T) {
|
||||||
|
@ -11,7 +11,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestInit(t *testing.T) {
|
func TestInit(t *testing.T) {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
type testRenderer struct {
|
type testRenderer struct {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHTTPBodyReaderLogin(t *testing.T) {
|
func TestHTTPBodyReaderLogin(t *testing.T) {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestExpireIsExpired(t *testing.T) {
|
func TestExpireIsExpired(t *testing.T) {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestInit(t *testing.T) {
|
func TestInit(t *testing.T) {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLogout(t *testing.T) {
|
func TestLogout(t *testing.T) {
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
"golang.org/x/oauth2"
|
"golang.org/x/oauth2"
|
||||||
"golang.org/x/oauth2/facebook"
|
"golang.org/x/oauth2/facebook"
|
||||||
"golang.org/x/oauth2/google"
|
"golang.org/x/oauth2/google"
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
type testUser struct {
|
type testUser struct {
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
type smsHolderSender string
|
type smsHolderSender string
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pquerna/otp/totp"
|
"github.com/pquerna/otp/totp"
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTOTPSetup(t *testing.T) {
|
func TestTOTPSetup(t *testing.T) {
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetup(t *testing.T) {
|
func TestSetup(t *testing.T) {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetupEmailVerify(t *testing.T) {
|
func TestSetupEmailVerify(t *testing.T) {
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestRegisterInit(t *testing.T) {
|
func TestRegisterInit(t *testing.T) {
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/volatiletech/authboss"
|
"github.com/volatiletech/authboss"
|
||||||
"github.com/volatiletech/authboss/internal/mocks"
|
"github.com/volatiletech/authboss/mocks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestInit(t *testing.T) {
|
func TestInit(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user