Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions model/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"unicode/utf8"

dto "github.com/prometheus/client_model/go"
"go.yaml.in/yaml/v2"
"google.golang.org/protobuf/proto"
)

Expand Down Expand Up @@ -78,14 +77,6 @@ const (
UTF8Validation
)

var _ interface {
yaml.Marshaler
yaml.Unmarshaler
json.Marshaler
json.Unmarshaler
fmt.Stringer
} = new(ValidationScheme)

// String returns the string representation of s.
func (s ValidationScheme) String() string {
switch s {
Expand Down
8 changes: 8 additions & 0 deletions model/metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ import (
"google.golang.org/protobuf/proto"
)

var _ interface {
yaml.Marshaler
yaml.Unmarshaler
json.Marshaler
json.Unmarshaler
fmt.Stringer
} = new(ValidationScheme)

func testMetric(t testing.TB) {
scenarios := []struct {
input LabelSet
Expand Down
Loading