(t *testing.T)
| 84 | } |
| 85 | |
| 86 | func TestNewRPCInvocation(t *testing.T) { |
| 87 | methodName := "testMethod" |
| 88 | arguments := []any{"arg1", 123, true} |
| 89 | attachments := map[string]any{ |
| 90 | "key1": "value1", |
| 91 | "key2": "value2", |
| 92 | } |
| 93 | |
| 94 | invocation := NewRPCInvocation(methodName, arguments, attachments) |
| 95 | |
| 96 | assert.NotNil(t, invocation) |
| 97 | assert.Equal(t, methodName, invocation.MethodName()) |
| 98 | assert.Equal(t, arguments, invocation.Arguments()) |
| 99 | assert.Equal(t, attachments, invocation.Attachments()) |
| 100 | assert.NotNil(t, invocation.Attributes()) |
| 101 | assert.Empty(t, invocation.Attributes()) |
| 102 | } |
| 103 | |
| 104 | func TestNewRPCInvocationWithOptions(t *testing.T) { |
| 105 | methodName := "testMethod" |
nothing calls this directly
no test coverage detected