FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Refactored the test files with helpers to test backend by yangchenyun · Pull Request #16 · inetaf/tcpproxy · GitHub

Refactored the test files with helpers to test backend - #16

Open
yangchenyun wants to merge 1 commit into
inetaf:masterfrom
yangchenyun:test_method_refactoring
Open

Refactored the test files with helpers to test backend#16
yangchenyun wants to merge 1 commit into
inetaf:masterfrom
yangchenyun:test_method_refactoring

Conversation

yangchenyun commented Apr 11, 2018
edited
Loading

Copy link
Copy Markdown

Refactored the test by extracting the following two methods:

func testRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string)
func testNotRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string) <-chan bool

This change is 

```
func testRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string)
func testNotRouteToBackend(t *testing.T, front net.Listener, back net.Listener, msg string) <-chan bool
```

Copy link
Copy Markdown
Author

Ping for a look.

Copy link
Copy Markdown
Author

ping?

Copy link
Copy Markdown
Collaborator

The returned channel is weird.

And the helpers are both undocumented.

What's the point of this? The PR just says it's "refactored" ... but why?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL