(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestUnsupportedAssociate(t *testing.T) { |
| 23 | req := createRequest(t, socks5Version, associateCommand, "127.0.0.1", 1337, false) |
| 24 | var b bytes.Buffer |
| 25 | |
| 26 | requestHandler := NewRequestHandler(NewNetDialer(), nil) |
| 27 | err := requestHandler.Handle(req, &b) |
| 28 | assert.NoError(t, err) |
| 29 | assert.True(t, b.Bytes()[1] == commandNotSupported, "expected a response") |
| 30 | } |
| 31 | |
| 32 | func TestHandleConnect(t *testing.T) { |
| 33 | req := createRequest(t, socks5Version, connectCommand, "127.0.0.1", 1337, false) |
nothing calls this directly
no test coverage detected