MCPcopy
hub / github.com/grafana/tempo / TestGetGrpcEndpoint

Function TestGetGrpcEndpoint

cmd/tempo-vulture/main_test.go:598–609  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

596}
597
598func 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
611func TestNewJaegerToOTLPExportert(t *testing.T) {
612 configValid := vultureConfiguration{

Callers

nothing calls this directly

Calls 3

getGRPCEndpointFunction · 0.85
ErrorMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected