Skip to content

Commit

Permalink
Remove dot import from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminguttmann-avtq committed Oct 26, 2023
1 parent ccfdc5f commit a66c658
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions nozzle/rollup/summary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

"github.com/bosh-prometheus/firehose_exporter/metrics"
. "github.com/bosh-prometheus/firehose_exporter/nozzle/rollup"
"github.com/bosh-prometheus/firehose_exporter/nozzle/rollup"
"github.com/bosh-prometheus/firehose_exporter/transform"
dto "github.com/prometheus/client_model/go"

Expand Down Expand Up @@ -61,7 +61,7 @@ func (h *summary) Bucket(le string) *dto.Summary {
}

var _ = ginkgo.Describe("summary Rollup", func() {
extract := func(batches []*PointsBatch) []*summary {
extract := func(batches []*rollup.PointsBatch) []*summary {
var summaries []*summary

for _, b := range batches {
Expand All @@ -74,7 +74,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
}

ginkgo.It("returns aggregate information for rolled up events", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"0",
nil,
)
Expand All @@ -97,7 +97,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
})

ginkgo.It("returns batches which each includes a size estimate", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"0",
nil,
)
Expand All @@ -114,7 +114,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
})

ginkgo.It("returns points for each bucket in the summary", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"0",
nil,
)
Expand All @@ -140,7 +140,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
})

ginkgo.It("returns points with the timestamp given to Rollup", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"node-index",
nil,
)
Expand All @@ -156,7 +156,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
})

ginkgo.It("returns summaries with labels based on tags", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"node-index",
[]string{"included-tag"},
)
Expand All @@ -179,7 +179,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
})

ginkgo.It("returns points that track a running total of rolled up events", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"0",
[]string{"included-tag"},
)
Expand All @@ -206,7 +206,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
})

ginkgo.It("returns separate summaries for distinct source IDs", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"0",
[]string{"included-tag"},
)
Expand All @@ -229,7 +229,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
})

ginkgo.It("returns separate summaries for different included tags", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"0",
[]string{"included-tag"},
)
Expand All @@ -252,7 +252,7 @@ var _ = ginkgo.Describe("summary Rollup", func() {
})

ginkgo.It("does not return separate summaries for different excluded tags", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"0",
[]string{"included-tag"},
)
Expand All @@ -276,10 +276,10 @@ var _ = ginkgo.Describe("summary Rollup", func() {

ginkgo.Context("CleanPeriodic", func() {
ginkgo.It("should clean metrics after amount of time", func() {
rollup := NewSummaryRollup(
rollup := rollup.NewSummaryRollup(
"0",
nil,
SetSummaryCleaning(10*time.Millisecond, 50*time.Millisecond),
rollup.SetSummaryCleaning(10*time.Millisecond, 50*time.Millisecond),
)

rollup.Record(
Expand Down

0 comments on commit a66c658

Please sign in to comment.