Commit 29febb7 1 parent 87f7282 commit 29febb7 Copy full SHA for 29febb7
File tree 7 files changed +22
-15
lines changed
7 files changed +22
-15
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,10 @@ package logproto
3
3
import (
4
4
"testing"
5
5
6
- "github.com/grafana/loki/v3/pkg/logql/syntax"
7
6
"github.com/prometheus/common/model"
8
7
"github.com/stretchr/testify/require"
8
+
9
+ "github.com/grafana/loki/v3/pkg/logql/syntax"
9
10
)
10
11
11
12
func TestShard_SpaceFor (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
14
14
"github.com/grafana/dskit/ring"
15
15
ring_client "github.com/grafana/dskit/ring/client"
16
16
"github.com/grafana/dskit/services"
17
+
17
18
"github.com/grafana/loki/v3/pkg/logproto"
18
19
"github.com/grafana/loki/v3/pkg/pattern/metric"
19
20
)
Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ import (
6
6
"time"
7
7
8
8
"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"
12
9
"github.com/prometheus/common/model"
13
10
"github.com/stretchr/testify/assert"
14
11
"github.com/stretchr/testify/require"
15
12
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
+
16
17
"github.com/grafana/loki/pkg/push"
17
18
)
18
19
Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ import (
6
6
"sort"
7
7
"time"
8
8
9
+ "github.com/prometheus/common/model"
10
+ "github.com/prometheus/prometheus/model/labels"
11
+
9
12
"github.com/grafana/loki/v3/pkg/logproto"
10
13
"github.com/grafana/loki/v3/pkg/logql/syntax"
11
14
"github.com/grafana/loki/v3/pkg/pattern/chunk"
12
- "github.com/prometheus/common/model"
13
- "github.com/prometheus/prometheus/model/labels"
14
15
15
16
"github.com/grafana/loki/v3/pkg/iter"
16
17
)
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ import (
4
4
"reflect"
5
5
"testing"
6
6
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"
10
7
"github.com/prometheus/common/model"
11
8
"github.com/prometheus/prometheus/model/labels"
12
9
"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"
13
14
)
14
15
15
16
func TestForTypeAndRange (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -6,15 +6,16 @@ import (
6
6
"sort"
7
7
"time"
8
8
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
+
9
14
loki_iter "github.com/grafana/loki/v3/pkg/iter"
10
15
"github.com/grafana/loki/v3/pkg/logproto"
11
16
"github.com/grafana/loki/v3/pkg/logql"
12
17
"github.com/grafana/loki/v3/pkg/logql/syntax"
13
18
"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"
18
19
)
19
20
20
21
// TODO(twhitney): duplication with code in NewStepEvaluator
Original file line number Diff line number Diff line change @@ -4,11 +4,12 @@ import (
4
4
"context"
5
5
"testing"
6
6
7
- "github.com/grafana/loki/v3/pkg/logql"
8
- "github.com/grafana/loki/v3/pkg/logql/syntax"
9
7
"github.com/prometheus/common/model"
10
8
"github.com/prometheus/prometheus/model/labels"
11
9
"github.com/stretchr/testify/require"
10
+
11
+ "github.com/grafana/loki/v3/pkg/logql"
12
+ "github.com/grafana/loki/v3/pkg/logql/syntax"
12
13
)
13
14
14
15
func Test_SampleEvaluator (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments