File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,10 +22,9 @@ import (
2222 "os"
2323 "testing"
2424
25- "google.golang.org/protobuf/encoding/protodelim"
26-
2725 dto "github.com/prometheus/client_model/go"
2826 "github.com/stretchr/testify/require"
27+ "google.golang.org/protobuf/encoding/protodelim"
2928
3029 "github.com/prometheus/common/model"
3130)
Original file line number Diff line number Diff line change @@ -18,14 +18,12 @@ import (
1818 "io"
1919 "net/http"
2020
21+ "github.com/munnerz/goautoneg"
22+ dto "github.com/prometheus/client_model/go"
2123 "google.golang.org/protobuf/encoding/protodelim"
2224 "google.golang.org/protobuf/encoding/prototext"
2325
2426 "github.com/prometheus/common/model"
25-
26- "github.com/munnerz/goautoneg"
27-
28- dto "github.com/prometheus/client_model/go"
2927)
3028
3129// Encoder types encode metric families into an underlying wire protocol.
Original file line number Diff line number Diff line change @@ -18,13 +18,12 @@ import (
1818 "net/http"
1919 "testing"
2020
21+ dto "github.com/prometheus/client_model/go"
2122 "github.com/stretchr/testify/assert"
2223 "github.com/stretchr/testify/require"
2324 "google.golang.org/protobuf/proto"
2425
2526 "github.com/prometheus/common/model"
26-
27- dto "github.com/prometheus/client_model/go"
2827)
2928
3029func TestNegotiate (t * testing.T ) {
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ package expfmt
1616import (
1717 "testing"
1818
19- "github.com/prometheus/common/model"
20-
2119 "github.com/stretchr/testify/require"
20+
21+ "github.com/prometheus/common/model"
2222)
2323
2424// Test Format to Escapting Scheme conversion
Original file line number Diff line number Diff line change @@ -22,11 +22,10 @@ import (
2222 "strconv"
2323 "strings"
2424
25+ dto "github.com/prometheus/client_model/go"
2526 "google.golang.org/protobuf/types/known/timestamppb"
2627
2728 "github.com/prometheus/common/model"
28-
29- dto "github.com/prometheus/client_model/go"
3029)
3130
3231type encoderOption struct {
Original file line number Diff line number Diff line change @@ -20,11 +20,10 @@ import (
2020 "testing"
2121 "time"
2222
23- "google.golang.org/protobuf/proto"
24- "google.golang.org/protobuf/types/known/timestamppb"
25-
2623 dto "github.com/prometheus/client_model/go"
2724 "github.com/stretchr/testify/require"
25+ "google.golang.org/protobuf/proto"
26+ "google.golang.org/protobuf/types/known/timestamppb"
2827
2928 "github.com/prometheus/common/model"
3029)
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ import (
2222 "strings"
2323 "sync"
2424
25- "github.com/prometheus/common/model"
26-
2725 dto "github.com/prometheus/client_model/go"
26+
27+ "github.com/prometheus/common/model"
2828)
2929
3030// enhancedWriter has all the enhanced write functions needed here. bufio.Writer
Original file line number Diff line number Diff line change @@ -19,10 +19,9 @@ import (
1919 "strings"
2020 "testing"
2121
22- "google.golang.org/protobuf/proto"
23-
2422 dto "github.com/prometheus/client_model/go"
2523 "github.com/stretchr/testify/require"
24+ "google.golang.org/protobuf/proto"
2625
2726 "github.com/prometheus/common/model"
2827)
You can’t perform that action at this time.
0 commit comments