(t *testing.T)
| 35 | ) |
| 36 | |
| 37 | func TestClientRequest(t *testing.T) { |
| 38 | server := newTestServer("service", new(Service)) |
| 39 | defer server.Stop() |
| 40 | client := DialInProc(server) |
| 41 | defer client.Close() |
| 42 | |
| 43 | var resp Result |
| 44 | if err := client.Call(&resp, "service_echo", "hello", 10, &Args{"world"}); err != nil { |
| 45 | t.Fatal(err) |
| 46 | } |
| 47 | if !reflect.DeepEqual(resp, Result{"hello", 10, &Args{"world"}}) { |
| 48 | t.Errorf("incorrect result %#v", resp) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func TestClientBatchRequest(t *testing.T) { |
| 53 | server := newTestServer("service", new(Service)) |
nothing calls this directly
no test coverage detected