Skip to content

Commit

Permalink
[configtelemetry] move implementation checks to test files (open-tele…
Browse files Browse the repository at this point in the history
…metry#9432)

**Description:**
 move implementation checks to test files
**Link to tracking Issue:** 
open-telemetry#9431
  • Loading branch information
atoulme authored Jan 30, 2024
1 parent 90a7c7a commit 39d2a0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions config/configtelemetry/configtelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
package configtelemetry // import "go.opentelemetry.io/collector/config/configtelemetry"

import (
"encoding"
"errors"
"fmt"
"strings"
Expand All @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions config/configtelemetry/configtelemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39d2a0a

Please sign in to comment.