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

Function TestRPCInvocation_MethodName

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

Source from the content-addressed store, hash-verified

137}
138
139func TestRPCInvocation_MethodName(t *testing.T) {
140 invocation := NewRPCInvocationWithOptions(WithMethodName("testMethod"))
141 assert.Equal(t, "testMethod", invocation.MethodName())
142}
143
144func TestRPCInvocation_ActualMethodName(t *testing.T) {
145 // Test non-generic invocation

Callers

nothing calls this directly

Calls 4

WithMethodNameFunction · 0.85
MethodNameMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected