Chore: Fix goimports grouping in alerting (#62424)

* fix goimports

* fix goimports order
This commit is contained in:
Serge Zaitsev
2023-01-30 09:55:35 +01:00
committed by GitHub
parent 0bf4093005
commit d6d4097567
69 changed files with 149 additions and 136 deletions
+3 -3
View File
@@ -12,6 +12,9 @@ import (
"strings"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/grafana/grafana/pkg/expr"
"github.com/grafana/grafana/pkg/expr/classic"
"github.com/grafana/grafana/pkg/infra/log"
@@ -19,9 +22,6 @@ import (
"github.com/grafana/grafana/pkg/services/datasources"
"github.com/grafana/grafana/pkg/services/ngalert/models"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-plugin-sdk-go/data"
)
var logger = log.New("ngalert.eval")
@@ -4,14 +4,12 @@ package eval_mocks
import (
context "context"
time "time"
backend "github.com/grafana/grafana-plugin-sdk-go/backend"
eval "github.com/grafana/grafana/pkg/services/ngalert/eval"
mock "github.com/stretchr/testify/mock"
time "time"
eval "github.com/grafana/grafana/pkg/services/ngalert/eval"
)
// ConditionEvaluatorMock is an autogenerated mock type for the ConditionEvaluator type
+1
View File
@@ -5,6 +5,7 @@ import (
"strings"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/grafana/grafana/pkg/expr/classic"
)
+2 -1
View File
@@ -4,9 +4,10 @@ import (
"testing"
"github.com/grafana/grafana-plugin-sdk-go/data"
"github.com/grafana/grafana/pkg/expr/classic"
"github.com/stretchr/testify/require"
ptr "github.com/xorcare/pointer"
"github.com/grafana/grafana/pkg/expr/classic"
)
func TestExtractEvalString(t *testing.T) {