]> Cypherpunks repositories - gostls13.git/commit
net/url: modernise parse and unit tests
authorDave Day <djd@golang.org>
Fri, 9 Sep 2016 07:59:43 +0000 (17:59 +1000)
committerDave Day <djd@golang.org>
Mon, 12 Sep 2016 04:04:18 +0000 (04:04 +0000)
commit9e876861017991fe1478421b85a83964ea7abc6d
tree9f2434a128de87ad0fe1576774d00317b6fdb82d
parent4ba2a4913c4e29754ade9d7329ff324a8f5de59a
net/url: modernise parse and unit tests

Remove the naked returns and goto statements from parse.

Make tests more consistent in the got/want ordering, and clean up some
unnecessary helper functions.

Change-Id: Iaa244cb8c00dd6b42836d95448bf02caa72bfabd
Reviewed-on: https://go-review.googlesource.com/28890
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/url/url.go
src/net/url/url_test.go