(client *testingClient)
| 529 | } |
| 530 | |
| 531 | func startReading(client *testingClient) { |
| 532 | go func() { |
| 533 | for { |
| 534 | _, payload, err := client.conn.ReadMessage() |
| 535 | if err != nil { |
| 536 | return |
| 537 | } |
| 538 | |
| 539 | actual := &model.MessageExternal{} |
| 540 | json.NewDecoder(bytes.NewBuffer(payload)).Decode(actual) |
| 541 | client.readMessage <- *actual |
| 542 | } |
| 543 | }() |
| 544 | } |
| 545 | |
| 546 | func createClient(t *testing.T, url string) *testingClient { |
| 547 | ws, _, err := websocket.DefaultDialer.Dial(url, nil) |
no outgoing calls
no test coverage detected
searching dependent graphs…