Skip to content

Commit

Permalink
[confighttp] move implementation checks to test files (open-telemetry…
Browse files Browse the repository at this point in the history
…#9433)

move implementation checks to test files

open-telemetry#9431
  • Loading branch information
atoulme authored Jan 30, 2024
1 parent 89388ad commit 90a7c7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/confighttp/clientinfohandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import (
"go.opentelemetry.io/collector/client"
)

var _ http.Handler = (*clientInfoHandler)(nil)

// clientInfoHandler is an http.Handler that enhances the incoming request context with client.Info.
type clientInfoHandler struct {
next http.Handler
Expand Down
3 changes: 3 additions & 0 deletions config/confighttp/clientinfohandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ package confighttp // import "go.opentelemetry.io/collector/config/confighttp"

import (
"net"
"net/http"
"testing"

"github.com/stretchr/testify/assert"
)

var _ http.Handler = (*clientInfoHandler)(nil)

func TestParseIP(t *testing.T) {
testCases := []struct {
desc string
Expand Down

0 comments on commit 90a7c7a

Please sign in to comment.