@@ -17,7 +17,7 @@ import (
1717)
1818
1919func TestTranslatorWithoutDataType (t * testing.T ) {
20- config := EndpointConfig {
20+ config := endpointConfig {
2121 protocol : HTTP ,
2222 endpoint : "127.0.0.1:4318" ,
2323 }
@@ -30,15 +30,15 @@ func TestTranslatorWithoutDataType(t *testing.T) {
3030
3131func TestTracesTranslator (t * testing.T ) {
3232 // Clear cache before test
33- configCache = make (map [EndpointConfig ]component.Config )
33+ configCache = make (map [endpointConfig ]component.Config )
3434
3535 testCases := map [string ]struct {
36- config EndpointConfig
36+ config endpointConfig
3737 want func (* otlpreceiver.Config ) bool
3838 wantErr error
3939 }{
4040 "WithGRPCDefault" : {
41- config : EndpointConfig {
41+ config : endpointConfig {
4242 protocol : GRPC ,
4343 endpoint : "127.0.0.1:4317" ,
4444 },
@@ -47,7 +47,7 @@ func TestTracesTranslator(t *testing.T) {
4747 },
4848 },
4949 "WithHTTPDefault" : {
50- config : EndpointConfig {
50+ config : endpointConfig {
5151 protocol : HTTP ,
5252 endpoint : "127.0.0.1:4318" ,
5353 },
@@ -56,7 +56,7 @@ func TestTracesTranslator(t *testing.T) {
5656 },
5757 },
5858 "WithTLS" : {
59- config : EndpointConfig {
59+ config : endpointConfig {
6060 protocol : GRPC ,
6161 endpoint : "127.0.0.1:4317" ,
6262 certFile : "path/to/cert.crt" ,
@@ -74,7 +74,7 @@ func TestTracesTranslator(t *testing.T) {
7474 for name , testCase := range testCases {
7575 t .Run (name , func (t * testing.T ) {
7676 // Clear cache before each test case
77- configCache = make (map [EndpointConfig ]component.Config )
77+ configCache = make (map [endpointConfig ]component.Config )
7878 tt := NewTranslator (testCase .config )
7979 got , err := tt .Translate (confmap .New ())
8080 assert .Equal (t , testCase .wantErr , err )
@@ -90,15 +90,15 @@ func TestTracesTranslator(t *testing.T) {
9090
9191func TestMetricsTranslator (t * testing.T ) {
9292 // Clear cache before test
93- configCache = make (map [EndpointConfig ]component.Config )
93+ configCache = make (map [endpointConfig ]component.Config )
9494
9595 testCases := map [string ]struct {
96- config EndpointConfig
96+ config endpointConfig
9797 want func (* otlpreceiver.Config ) bool
9898 wantErr error
9999 }{
100100 "WithGRPCEndpoint" : {
101- config : EndpointConfig {
101+ config : endpointConfig {
102102 protocol : GRPC ,
103103 endpoint : "127.0.0.1:1234" ,
104104 },
@@ -107,7 +107,7 @@ func TestMetricsTranslator(t *testing.T) {
107107 },
108108 },
109109 "WithHTTPEndpoint" : {
110- config : EndpointConfig {
110+ config : endpointConfig {
111111 protocol : HTTP ,
112112 endpoint : "127.0.0.1:2345" ,
113113 },
@@ -120,7 +120,7 @@ func TestMetricsTranslator(t *testing.T) {
120120 for name , testCase := range testCases {
121121 t .Run (name , func (t * testing.T ) {
122122 // Clear cache before each test case
123- configCache = make (map [EndpointConfig ]component.Config )
123+ configCache = make (map [endpointConfig ]component.Config )
124124 tt := NewTranslator (testCase .config )
125125 got , err := tt .Translate (confmap .New ())
126126 assert .Equal (t , testCase .wantErr , err )
@@ -136,9 +136,9 @@ func TestMetricsTranslator(t *testing.T) {
136136
137137func TestCaching (t * testing.T ) {
138138 // Clear cache before test
139- configCache = make (map [EndpointConfig ]component.Config )
139+ configCache = make (map [endpointConfig ]component.Config )
140140
141- config := EndpointConfig {
141+ config := endpointConfig {
142142 protocol : HTTP ,
143143 endpoint : "127.0.0.1:4318" ,
144144 }
@@ -158,7 +158,7 @@ func TestTLSConflictDetection(t *testing.T) {
158158 ClearConfigCache () // Clear cache before test
159159
160160 // First translator with TLS
161- config1 := EndpointConfig {
161+ config1 := endpointConfig {
162162 protocol : HTTP ,
163163 endpoint : "127.0.0.1:4318" ,
164164 certFile : "cert1.pem" ,
@@ -169,7 +169,7 @@ func TestTLSConflictDetection(t *testing.T) {
169169 assert .NoError (t , err1 )
170170
171171 // Second translator with different TLS for same endpoint
172- config2 := EndpointConfig {
172+ config2 := endpointConfig {
173173 protocol : HTTP ,
174174 endpoint : "127.0.0.1:4318" ,
175175 certFile : "cert2.pem" ,
0 commit comments