Skip to content

Commit

Permalink
moved collectionTest to desc_test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstonematt committed Oct 29, 2024
1 parent fdf2fb6 commit b7eabac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
18 changes: 6 additions & 12 deletions cmd/solana_exporter/desc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@ import (
"github.com/prometheus/client_golang/prometheus"
)

type (
GaugeDesc struct {
Desc *prometheus.Desc
Name string
Help string
VariableLabels []string
}
collectionTest struct {
Name string
ExpectedResponse string
}
)
type GaugeDesc struct {
Desc *prometheus.Desc
Name string
Help string
VariableLabels []string
}

func NewGaugeDesc(name string, description string, variableLabels ...string) *GaugeDesc {
return &GaugeDesc{
Expand Down
14 changes: 10 additions & 4 deletions cmd/solana_exporter/desc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ import (
"sort"
)

type LV struct {
labels []string
value float64
}
type (
LV struct {
labels []string
value float64
}
collectionTest struct {
Name string
ExpectedResponse string
}
)

func NewLV(value float64, labels ...string) LV {
return LV{labels, value}
Expand Down

0 comments on commit b7eabac

Please sign in to comment.