From 39d2a0a59f23698da7a337cf1f9c12b322058685 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Tue, 30 Jan 2024 12:32:38 -0800 Subject: [PATCH] [configtelemetry] move implementation checks to test files (#9432) **Description:** move implementation checks to test files **Link to tracking Issue:** #9431 --- config/configtelemetry/configtelemetry.go | 4 ---- config/configtelemetry/configtelemetry_test.go | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/configtelemetry/configtelemetry.go b/config/configtelemetry/configtelemetry.go index 0ec660bd77c..b8c0967c905 100644 --- a/config/configtelemetry/configtelemetry.go +++ b/config/configtelemetry/configtelemetry.go @@ -4,7 +4,6 @@ package configtelemetry // import "go.opentelemetry.io/collector/config/configtelemetry" import ( - "encoding" "errors" "fmt" "strings" @@ -30,9 +29,6 @@ const ( // that every component should generate. type Level int32 -var _ encoding.TextMarshaler = (*Level)(nil) -var _ encoding.TextUnmarshaler = (*Level)(nil) - func (l Level) String() string { switch l { case LevelNone: diff --git a/config/configtelemetry/configtelemetry_test.go b/config/configtelemetry/configtelemetry_test.go index 409a60cd6e1..27236bbe32b 100644 --- a/config/configtelemetry/configtelemetry_test.go +++ b/config/configtelemetry/configtelemetry_test.go @@ -4,11 +4,15 @@ package configtelemetry import ( + "encoding" "testing" "github.com/stretchr/testify/assert" ) +var _ encoding.TextMarshaler = (*Level)(nil) +var _ encoding.TextUnmarshaler = (*Level)(nil) + func TestUnmarshalText(t *testing.T) { tests := []struct { str []string