Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2940)

Issue 6432045: cmd/juju: status: add testing skeleton (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by dave
Modified:
11 years, 9 months ago
Reviewers:
niemeyer, mp+115649
Visibility:
Public.

Description

cmd/juju: status: add testing skeleton Nothing here to test (yet), presented for comment and review in the spirit of producing smaller diffs. https://code.launchpad.net/~dave-cheney/juju-core/go-cmd-juju-status-machines/+merge/115649 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cmd/juju: status: add testing skeleton #

Patch Set 3 : cmd/juju: status: add testing skeleton #

Total comments: 7

Patch Set 4 : cmd/juju: status: add testing skeleton #

Patch Set 5 : cmd/juju: status: add testing skeleton #

Total comments: 4

Patch Set 6 : cmd/juju: status: add testing skeleton #

Patch Set 7 : cmd/juju: status: add testing skeleton #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -4 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/status.go View 1 2 3 4 5 6 2 chunks +17 lines, -4 lines 0 comments Download
A cmd/juju/status_test.go View 1 2 3 4 1 chunk +90 lines, -0 lines 0 comments Download

Messages

Total messages: 7
dave_cheney.net
Please take a look.
11 years, 9 months ago (2012-07-19 05:52:20 UTC) #1
dave_cheney.net
Please take a look.
11 years, 9 months ago (2012-07-19 06:20:41 UTC) #2
niemeyer
LGTM https://codereview.appspot.com/6432045/diff/3004/cmd/juju/status.go File cmd/juju/status.go (right): https://codereview.appspot.com/6432045/diff/3004/cmd/juju/status.go#newcode42 cmd/juju/status.go:42: Machines map[int]interface{} We'll eventually need tags in that ...
11 years, 9 months ago (2012-07-19 21:58:07 UTC) #3
dave_cheney.net
Thanks for your comments, i'm putting this back in WIP for the moment. https://codereview.appspot.com/6432045/diff/3004/cmd/juju/status.go File ...
11 years, 9 months ago (2012-07-20 01:01:16 UTC) #4
dave_cheney.net
Please take a look.
11 years, 9 months ago (2012-07-20 02:02:52 UTC) #5
niemeyer
LGTM, but please consider the following suggestions: https://codereview.appspot.com/6432045/diff/10001/cmd/juju/status.go File cmd/juju/status.go (right): https://codereview.appspot.com/6432045/diff/10001/cmd/juju/status.go#newcode38 cmd/juju/status.go:38: result := ...
11 years, 9 months ago (2012-07-20 02:28:19 UTC) #6
dave_cheney.net
11 years, 9 months ago (2012-07-20 05:39:04 UTC) #7
*** Submitted:

cmd/juju: status: add testing skeleton

Nothing here to test (yet), presented for comment
and review in the spirit of producing smaller diffs.

R=niemeyer
CC=
https://codereview.appspot.com/6432045

https://codereview.appspot.com/6432045/diff/10001/cmd/juju/status.go
File cmd/juju/status.go (right):

https://codereview.appspot.com/6432045/diff/10001/cmd/juju/status.go#newcode38
cmd/juju/status.go:38: result := struct {
On 2012/07/20 02:28:19, niemeyer wrote:
> This would be more readable as a properly named type out of Run.

Done.

https://codereview.appspot.com/6432045/diff/10001/cmd/juju/status_test.go
File cmd/juju/status_test.go (right):

https://codereview.appspot.com/6432045/diff/10001/cmd/juju/status_test.go#new...
cmd/juju/status_test.go:49: output  map[string]string
On 2012/07/20 02:28:19, niemeyer wrote:
> It's easier to maintain and to read this as a single map[string]interface{}
> value that reflects the actual output. Maintaining those by-hand yaml and json
> strings will be completely unmanageable once these maps depart from the
trivial.

Unfortunately this is not possible. goayml and json decoders produce different
generic map types, json produces map[string]interface{}, yaml produces
map[interface{}]interface{}.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b