Chore: Fix goimports grouping (#62423)

* fix goimports

* fix goimports order
pull/62215/head
Serge Zaitsev 2 years ago committed by GitHub
parent bc2813ef06
commit e2d49ea17f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      pkg/tsdb/grafanads/grafana.go
  2. 3
      pkg/util/proxyutil/proxyutil_test.go
  3. 3
      pkg/util/proxyutil/reverse_proxy_test.go
  4. 3
      pkg/web/macaron.go
  5. 1
      pkg/web/webtest/webtest.go
  6. 3
      pkg/web/webtest/webtest_test.go

@ -9,14 +9,15 @@ import (
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/services/datasources"
"github.com/grafana/grafana/pkg/services/searchV2"
"github.com/grafana/grafana/pkg/services/store"
"github.com/grafana/grafana/pkg/tsdb/testdatasource"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
// DatasourceName is the string constant used as the datasource name in requests

@ -4,8 +4,9 @@ import (
"net/http"
"testing"
"github.com/grafana/grafana/pkg/services/user"
"github.com/stretchr/testify/require"
"github.com/grafana/grafana/pkg/services/user"
)
func TestPrepareProxyRequest(t *testing.T) {

@ -8,9 +8,10 @@ import (
"testing"
"time"
"github.com/stretchr/testify/require"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/services/contexthandler"
"github.com/stretchr/testify/require"
)
func TestReverseProxy(t *testing.T) {

@ -19,11 +19,10 @@
package web
import (
_ "unsafe"
"context"
"net/http"
"strings"
_ "unsafe"
)
const _VERSION = "1.3.4.0805"

@ -8,6 +8,7 @@ import (
"testing"
"github.com/google/uuid"
"github.com/grafana/grafana/pkg/api/routing"
"github.com/grafana/grafana/pkg/infra/log"
"github.com/grafana/grafana/pkg/services/contexthandler/ctxkey"

@ -7,11 +7,12 @@ import (
"strings"
"testing"
"github.com/stretchr/testify/require"
"github.com/grafana/grafana/pkg/api/response"
"github.com/grafana/grafana/pkg/api/routing"
contextmodel "github.com/grafana/grafana/pkg/services/contexthandler/model"
"github.com/grafana/grafana/pkg/services/user"
"github.com/stretchr/testify/require"
)
func TestServer(t *testing.T) {

Loading…
Cancel
Save