MCPcopy Create free account
hub / github.com/apache/dubbo-go / TestRPCInvocation_WithInvoker

Function TestRPCInvocation_WithInvoker

protocol/invocation/rpcinvocation_test.go:434–442  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

432}
433
434func TestRPCInvocation_WithInvoker(t *testing.T) {
435 url, err := common.NewURL("dubbo://127.0.0.1:20000/test")
436 require.NoError(t, err)
437 mockInvoker := &mockInvoker{url: url}
438
439 invocation := NewRPCInvocationWithOptions(WithInvoker(mockInvoker))
440 assert.NotNil(t, invocation.Invoker())
441 assert.Equal(t, mockInvoker, invocation.Invoker())
442}
443
444func TestRPCInvocation_WithParameterTypeNames_EmptySlice(t *testing.T) {
445 // Test with empty slice

Callers

nothing calls this directly

Calls 5

NewURLFunction · 0.92
WithInvokerFunction · 0.85
InvokerMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected