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

Issue 13489044: environs/configstore: memory-based store

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by rog
Modified:
10 years, 7 months ago
Reviewers:
mp+186643, natefinch, thumper
Visibility:
Public.

Description

environs/configstore: memory-based store We'll use this for testing, and it's potentially useful in other circumstances too. https://code.launchpad.net/~rogpeppe/juju-core/404-mem-configstore/+merge/186643 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs/configstore: memory-based store #

Total comments: 6

Patch Set 3 : environs/configstore: memory-based store #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -75 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/configstore/disk_test.go View 4 chunks +31 lines, -75 lines 0 comments Download
A environs/configstore/interface_test.go View 1 2 1 chunk +133 lines, -0 lines 0 comments Download
A environs/configstore/mem.go View 1 chunk +88 lines, -0 lines 0 comments Download
A environs/configstore/mem_test.go View 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
10 years, 7 months ago (2013-09-19 20:24:10 UTC) #1
natefinch
https://codereview.appspot.com/13489044/diff/2/environs/configstore/interface_test.go File environs/configstore/interface_test.go (right): https://codereview.appspot.com/13489044/diff/2/environs/configstore/interface_test.go#newcode22 environs/configstore/interface_test.go:22: s.NewStore(c) What does this test exactly? Other than the ...
10 years, 7 months ago (2013-09-19 21:10:17 UTC) #2
natefinch
LGTM. If it were me, I'd probably make sequential asserts into checks (except possibly the ...
10 years, 7 months ago (2013-09-19 21:46:28 UTC) #3
thumper
https://codereview.appspot.com/13489044/diff/2/environs/configstore/interface_test.go File environs/configstore/interface_test.go (right): https://codereview.appspot.com/13489044/diff/2/environs/configstore/interface_test.go#newcode136 environs/configstore/interface_test.go:136: c.Assert(info1.APIEndpoint(), gc.DeepEquals, environs.APIEndpoint{}) On 2013/09/19 21:46:28, nate.finch wrote: > ...
10 years, 7 months ago (2013-09-19 21:56:05 UTC) #4
rog
Please take a look. https://codereview.appspot.com/13489044/diff/2/environs/configstore/interface_test.go File environs/configstore/interface_test.go (right): https://codereview.appspot.com/13489044/diff/2/environs/configstore/interface_test.go#newcode22 environs/configstore/interface_test.go:22: s.NewStore(c) On 2013/09/19 21:10:18, nate.finch ...
10 years, 7 months ago (2013-09-19 22:00:36 UTC) #5
natefinch
10 years, 7 months ago (2013-09-19 23:00:33 UTC) #6
On Sep 19, 2013 5:56 PM, <tim.penhey@canonical.com> wrote:
>
>
>
https://codereview.appspot.com/13489044/diff/2/environs/configstore/interface...
> File environs/configstore/interface_test.go (right):
>
>
https://codereview.appspot.com/13489044/diff/2/environs/configstore/interface...
> environs/configstore/interface_test.go:136:
> c.Assert(info1.APIEndpoint(), gc.DeepEquals, environs.APIEndpoint{})
> On 2013/09/19 21:46:28, nate.finch wrote:
>>
>> These four should probably all be c.Check, right?
>
>
> Why?  I don't see any issue with asserts

Because then you'll see all four values if they fail, not just the first
one to fail. It just prevents you from fixing the first one, retesting,
fixing the second one, etc. Like I said, not a big deal, but that's the
nice thing about check - you get more info about the state than you would
from just the first failure stopping everything.
Sign in to reply to this message.

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