(t *testing.T, url string)
| 544 | } |
| 545 | |
| 546 | func createClient(t *testing.T, url string) *testingClient { |
| 547 | ws, _, err := websocket.DefaultDialer.Dial(url, nil) |
| 548 | assert.Nil(t, err) |
| 549 | |
| 550 | readMessages := make(chan model.MessageExternal) |
| 551 | |
| 552 | return &testingClient{conn: ws, readMessage: readMessages, t: t} |
| 553 | } |
| 554 | |
| 555 | type testingClient struct { |
| 556 | conn *websocket.Conn |
no outgoing calls
no test coverage detected
searching dependent graphs…