Skip to content

Commit 29febb7

Browse files
committed
chore: make format
1 parent 87f7282 commit 29febb7

7 files changed

+22
-15
lines changed

pkg/logproto/extensions_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package logproto
33
import (
44
"testing"
55

6-
"github.com/grafana/loki/v3/pkg/logql/syntax"
76
"github.com/prometheus/common/model"
87
"github.com/stretchr/testify/require"
8+
9+
"github.com/grafana/loki/v3/pkg/logql/syntax"
910
)
1011

1112
func TestShard_SpaceFor(t *testing.T) {

pkg/pattern/ingester_querier_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"github.com/grafana/dskit/ring"
1515
ring_client "github.com/grafana/dskit/ring/client"
1616
"github.com/grafana/dskit/services"
17+
1718
"github.com/grafana/loki/v3/pkg/logproto"
1819
"github.com/grafana/loki/v3/pkg/pattern/metric"
1920
)

pkg/pattern/instance_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import (
66
"time"
77

88
"github.com/go-kit/log"
9-
"github.com/grafana/loki/v3/pkg/logproto"
10-
"github.com/grafana/loki/v3/pkg/logql/syntax"
11-
"github.com/grafana/loki/v3/pkg/pattern/metric"
129
"github.com/prometheus/common/model"
1310
"github.com/stretchr/testify/assert"
1411
"github.com/stretchr/testify/require"
1512

13+
"github.com/grafana/loki/v3/pkg/logproto"
14+
"github.com/grafana/loki/v3/pkg/logql/syntax"
15+
"github.com/grafana/loki/v3/pkg/pattern/metric"
16+
1617
"github.com/grafana/loki/pkg/push"
1718
)
1819

pkg/pattern/metric/chunk.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import (
66
"sort"
77
"time"
88

9+
"github.com/prometheus/common/model"
10+
"github.com/prometheus/prometheus/model/labels"
11+
912
"github.com/grafana/loki/v3/pkg/logproto"
1013
"github.com/grafana/loki/v3/pkg/logql/syntax"
1114
"github.com/grafana/loki/v3/pkg/pattern/chunk"
12-
"github.com/prometheus/common/model"
13-
"github.com/prometheus/prometheus/model/labels"
1415

1516
"github.com/grafana/loki/v3/pkg/iter"
1617
)

pkg/pattern/metric/chunk_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/grafana/loki/v3/pkg/logproto"
8-
"github.com/grafana/loki/v3/pkg/logql/syntax"
9-
"github.com/grafana/loki/v3/pkg/pattern/iter"
107
"github.com/prometheus/common/model"
118
"github.com/prometheus/prometheus/model/labels"
129
"github.com/stretchr/testify/require"
10+
11+
"github.com/grafana/loki/v3/pkg/logproto"
12+
"github.com/grafana/loki/v3/pkg/logql/syntax"
13+
"github.com/grafana/loki/v3/pkg/pattern/iter"
1314
)
1415

1516
func TestForTypeAndRange(t *testing.T) {

pkg/pattern/metric/evaluator.go

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ import (
66
"sort"
77
"time"
88

9+
"github.com/pkg/errors"
10+
"github.com/prometheus/common/model"
11+
"github.com/prometheus/prometheus/model/labels"
12+
"github.com/prometheus/prometheus/promql"
13+
914
loki_iter "github.com/grafana/loki/v3/pkg/iter"
1015
"github.com/grafana/loki/v3/pkg/logproto"
1116
"github.com/grafana/loki/v3/pkg/logql"
1217
"github.com/grafana/loki/v3/pkg/logql/syntax"
1318
"github.com/grafana/loki/v3/pkg/storage/chunk/cache/resultscache"
14-
"github.com/pkg/errors"
15-
"github.com/prometheus/common/model"
16-
"github.com/prometheus/prometheus/model/labels"
17-
"github.com/prometheus/prometheus/promql"
1819
)
1920

2021
// TODO(twhitney): duplication with code in NewStepEvaluator

pkg/pattern/metric/evaluator_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import (
44
"context"
55
"testing"
66

7-
"github.com/grafana/loki/v3/pkg/logql"
8-
"github.com/grafana/loki/v3/pkg/logql/syntax"
97
"github.com/prometheus/common/model"
108
"github.com/prometheus/prometheus/model/labels"
119
"github.com/stretchr/testify/require"
10+
11+
"github.com/grafana/loki/v3/pkg/logql"
12+
"github.com/grafana/loki/v3/pkg/logql/syntax"
1213
)
1314

1415
func Test_SampleEvaluator(t *testing.T) {

0 commit comments

Comments
 (0)