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

Issue 12097043: state: unexport ParseTag

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by fwereade
Modified:
10 years, 8 months ago
Reviewers:
mp+177557, rog
Visibility:
Public.

Description

state: unexport ParseTag ...which should clearly never have been exported in the first place. https://code.launchpad.net/~fwereade/juju-core/state-unexport-parse-tag/+merge/177557 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -8 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M state/annotator.go View 1 chunk +1 line, -1 line 0 comments Download
M state/export_test.go View 1 chunk +4 lines, -0 lines 1 comment Download
M state/state.go View 1 chunk +2 lines, -2 lines 0 comments Download
M state/state_test.go View 5 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 3
fwereade
Please take a look.
10 years, 8 months ago (2013-07-30 10:31:11 UTC) #1
rog
LGTM with one thought. https://codereview.appspot.com/12097043/diff/1/state/export_test.go File state/export_test.go (right): https://codereview.appspot.com/12097043/diff/1/state/export_test.go#newcode183 state/export_test.go:183: func ParseTag(st *State, tag string) ...
10 years, 8 months ago (2013-07-30 13:58:13 UTC) #2
fwereade
10 years, 8 months ago (2013-07-30 16:13:04 UTC) #3
On 2013/07/30 13:58:13, rog wrote:
> LGTM with one thought.
> 
> https://codereview.appspot.com/12097043/diff/1/state/export_test.go
> File state/export_test.go (right):
> 
> https://codereview.appspot.com/12097043/diff/1/state/export_test.go#newcode183
> state/export_test.go:183: func ParseTag(st *State, tag string) (string,
string,
> error) {
> or:
> 
> func (st *State) ParseTag(tag string) (string, string, error) {
>    return st.parseTag(tag)
> }
> 
> then the tests won't need to change.
> i don't mind either way, just a possibility you might not have considered.

Oddly enough, I did try it; I got weird linker errors, resolved not to care too
much, and did this instead.
Sign in to reply to this message.

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