Reorder imports

This commit is contained in:
Jannis Mattheis 2018-02-03 17:01:08 +01:00 committed by Jannis Mattheis
parent a901e8cdbf
commit 4e3d00ea98
9 changed files with 28 additions and 19 deletions

View File

@ -2,11 +2,12 @@ package api
import (
"errors"
"strconv"
"time"
"github.com/gin-gonic/gin"
"github.com/jmattheis/memo/auth"
"github.com/jmattheis/memo/model"
"strconv"
"time"
)
// The MessageDatabase interface for encapsulating database access.

View File

@ -1,6 +1,12 @@
package api
import (
"io/ioutil"
"net/http/httptest"
"strings"
"testing"
"time"
"github.com/bouk/monkey"
"github.com/gin-gonic/gin"
apimock "github.com/jmattheis/memo/api/mock"
@ -9,11 +15,6 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite"
"io/ioutil"
"net/http/httptest"
"strings"
"testing"
"time"
)
func TestMessageSuite(t *testing.T) {

View File

@ -2,6 +2,7 @@ package api
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/jmattheis/memo/auth"
"github.com/jmattheis/memo/model"

View File

@ -2,17 +2,18 @@ package api
import (
"errors"
"io/ioutil"
"math/rand"
"net/http/httptest"
"strings"
"testing"
"github.com/gin-gonic/gin"
apimock "github.com/jmattheis/memo/api/mock"
"github.com/jmattheis/memo/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite"
"io/ioutil"
"math/rand"
"net/http/httptest"
"strings"
"testing"
)
var (

View File

@ -2,9 +2,10 @@ package auth
import (
"errors"
"strings"
"github.com/gin-gonic/gin"
"github.com/jmattheis/memo/model"
"strings"
)
const (

View File

@ -2,14 +2,15 @@ package auth
import (
"fmt"
"net/http/httptest"
"testing"
"github.com/gin-gonic/gin"
authmock "github.com/jmattheis/memo/auth/mock"
"github.com/jmattheis/memo/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite"
"net/http/httptest"
"testing"
)
func TestSuite(t *testing.T) {

View File

@ -1,8 +1,9 @@
package auth
import (
"github.com/stretchr/testify/assert"
"testing"
"github.com/stretchr/testify/assert"
)
func TestPasswordSuccess(t *testing.T) {

View File

@ -1,9 +1,10 @@
package auth
import (
"github.com/stretchr/testify/assert"
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
func TestTokenHavePrefix(t *testing.T) {

View File

@ -1,12 +1,13 @@
package auth
import (
"net/http/httptest"
"testing"
"github.com/gin-gonic/gin"
"github.com/jmattheis/memo/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
"net/http/httptest"
"testing"
)
func TestUtilSuite(t *testing.T) {