(t *testing.T)
| 596 | } |
| 597 | |
| 598 | func TestGetGrpcEndpoint(t *testing.T) { |
| 599 | _, err := getGRPCEndpoint("http://%gh&%ij") |
| 600 | require.Error(t, err) |
| 601 | |
| 602 | got, err := getGRPCEndpoint("http://localhost:4000") |
| 603 | require.NoError(t, err) |
| 604 | assert.Equal(t, "http://localhost:4000", got, "Address endpoint should keep the given port") |
| 605 | |
| 606 | got, err = getGRPCEndpoint("http://localhost") |
| 607 | require.NoError(t, err) |
| 608 | assert.Equal(t, "http://localhost:4317", got, "Address without a port should be defaulted to 4317") |
| 609 | } |
| 610 | |
| 611 | func TestNewJaegerToOTLPExportert(t *testing.T) { |
| 612 | configValid := vultureConfiguration{ |
nothing calls this directly
no test coverage detected