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 ( import (
"errors" "errors"
"strconv"
"time"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/jmattheis/memo/auth" "github.com/jmattheis/memo/auth"
"github.com/jmattheis/memo/model" "github.com/jmattheis/memo/model"
"strconv"
"time"
) )
// The MessageDatabase interface for encapsulating database access. // The MessageDatabase interface for encapsulating database access.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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