Skip to content

Commit

Permalink
chore: make format
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed May 31, 2024
1 parent 87f7282 commit 29febb7
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 15 deletions.
3 changes: 2 additions & 1 deletion pkg/logproto/extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package logproto
import (
"testing"

"github.com/grafana/loki/v3/pkg/logql/syntax"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/require"

"github.com/grafana/loki/v3/pkg/logql/syntax"
)

func TestShard_SpaceFor(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions pkg/pattern/ingester_querier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/grafana/dskit/ring"
ring_client "github.com/grafana/dskit/ring/client"
"github.com/grafana/dskit/services"

"github.com/grafana/loki/v3/pkg/logproto"
"github.com/grafana/loki/v3/pkg/pattern/metric"
)
Expand Down
7 changes: 4 additions & 3 deletions pkg/pattern/instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
"time"

"github.com/go-kit/log"
"github.com/grafana/loki/v3/pkg/logproto"
"github.com/grafana/loki/v3/pkg/logql/syntax"
"github.com/grafana/loki/v3/pkg/pattern/metric"
"github.com/prometheus/common/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/grafana/loki/v3/pkg/logproto"
"github.com/grafana/loki/v3/pkg/logql/syntax"
"github.com/grafana/loki/v3/pkg/pattern/metric"

"github.com/grafana/loki/pkg/push"
)

Expand Down
5 changes: 3 additions & 2 deletions pkg/pattern/metric/chunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import (
"sort"
"time"

"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"

"github.com/grafana/loki/v3/pkg/logproto"
"github.com/grafana/loki/v3/pkg/logql/syntax"
"github.com/grafana/loki/v3/pkg/pattern/chunk"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"

"github.com/grafana/loki/v3/pkg/iter"
)
Expand Down
7 changes: 4 additions & 3 deletions pkg/pattern/metric/chunk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"reflect"
"testing"

"github.com/grafana/loki/v3/pkg/logproto"
"github.com/grafana/loki/v3/pkg/logql/syntax"
"github.com/grafana/loki/v3/pkg/pattern/iter"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/stretchr/testify/require"

"github.com/grafana/loki/v3/pkg/logproto"
"github.com/grafana/loki/v3/pkg/logql/syntax"
"github.com/grafana/loki/v3/pkg/pattern/iter"
)

func TestForTypeAndRange(t *testing.T) {
Expand Down
9 changes: 5 additions & 4 deletions pkg/pattern/metric/evaluator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ import (
"sort"
"time"

"github.com/pkg/errors"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql"

loki_iter "github.com/grafana/loki/v3/pkg/iter"
"github.com/grafana/loki/v3/pkg/logproto"
"github.com/grafana/loki/v3/pkg/logql"
"github.com/grafana/loki/v3/pkg/logql/syntax"
"github.com/grafana/loki/v3/pkg/storage/chunk/cache/resultscache"
"github.com/pkg/errors"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql"
)

// TODO(twhitney): duplication with code in NewStepEvaluator
Expand Down
5 changes: 3 additions & 2 deletions pkg/pattern/metric/evaluator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"context"
"testing"

"github.com/grafana/loki/v3/pkg/logql"
"github.com/grafana/loki/v3/pkg/logql/syntax"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
"github.com/stretchr/testify/require"

"github.com/grafana/loki/v3/pkg/logql"
"github.com/grafana/loki/v3/pkg/logql/syntax"
)

func Test_SampleEvaluator(t *testing.T) {
Expand Down

0 comments on commit 29febb7

Please sign in to comment.