Merge lp://staging/~niemeyer/juju-core/func-validators into lp://staging/~juju/juju-core/trunk

Proposed by Gustavo Niemeyer
Status: Merged
Merged at revision: 1133
Proposed branch: lp://staging/~niemeyer/juju-core/func-validators
Merge into: lp://staging/~juju/juju-core/trunk
Diff against target: 184 lines (+62/-53)
3 files modified
charm/url.go (+21/-11)
charm/url_test.go (+40/-41)
cmd/juju/bootstrap.go (+1/-1)
To merge this branch: bzr merge lp://staging/~niemeyer/juju-core/func-validators
Reviewer Review Type Date Requested Status
Juju Engineering Pending
Review via email: mp+157924@code.staging.launchpad.net

Description of the change

charm: use functions for validation

https://codereview.appspot.com/8585043/

To post a comment you must log in.
Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

Reviewers: mp+157924_code.launchpad.net,

Message:
Please take a look.

Description:
charm: use functions for validation

https://code.launchpad.net/~niemeyer/juju-core/func-validators/+merge/157924

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/8585043/

Affected files:
   A [revision details]
   M charm/url.go
   M charm/url_test.go
   M cmd/juju/bootstrap.go

Revision history for this message
Dimiter Naydenov (dimitern) wrote :
Revision history for this message
Данило Шеган (danilo) wrote :

LGTM with a tiny suggestion on variable naming.

https://codereview.appspot.com/8585043/diff/1/charm/url_test.go
File charm/url_test.go (left):

https://codereview.appspot.com/8585043/diff/1/charm/url_test.go#oldcode121
charm/url_test.go:121: var validRegexpTests = []struct {
It's probably worthwhile to rename this to validCheckerTests as well
(unless I am missing something).

https://codereview.appspot.com/8585043/diff/1/charm/url_test.go#oldcode166
charm/url_test.go:166: for i, t := range validRegexpTests {
See above.

https://codereview.appspot.com/8585043/

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

*** Submitted:

charm: use functions for validation

R=dimitern, danilo.segan
CC=
https://codereview.appspot.com/8585043

https://codereview.appspot.com/8585043/diff/1/charm/url_test.go
File charm/url_test.go (left):

https://codereview.appspot.com/8585043/diff/1/charm/url_test.go#oldcode121
charm/url_test.go:121: var validRegexpTests = []struct {
On 2013/04/09 18:16:37, danilo.segan wrote:
> It's probably worthwhile to rename this to validCheckerTests as well
(unless I
> am missing something).

Indeed, thanks.

https://codereview.appspot.com/8585043/diff/1/charm/url_test.go#oldcode166
charm/url_test.go:166: for i, t := range validRegexpTests {
On 2013/04/09 18:16:37, danilo.segan wrote:
> See above.

Done.

https://codereview.appspot.com/8585043/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches