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

Issue 13126043: slice content checker

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

Description

slice content checker Checker for checking that the contents of two slices are the same (using DeepEquals) without respect for order https://code.launchpad.net/~natefinch/juju-core/004-slicechecker/+merge/181096 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : slice content checker #

Patch Set 3 : slice content checker #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -0 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M testing/checkers/checker.go View 1 2 2 chunks +61 lines, -0 lines 2 comments Download
M testing/checkers/checker_test.go View 1 1 chunk +85 lines, -0 lines 0 comments Download

Messages

Total messages: 8
natefinch
Please take a look.
10 years, 8 months ago (2013-08-20 16:40:10 UTC) #1
natefinch
Please take a look.
10 years, 8 months ago (2013-08-20 18:04:28 UTC) #2
natefinch
Please take a look.
10 years, 8 months ago (2013-08-20 18:47:22 UTC) #3
rog
LGTM with one last thought https://codereview.appspot.com/13126043/diff/1/testing/checkers/checker.go File testing/checkers/checker.go (right): https://codereview.appspot.com/13126043/diff/1/testing/checkers/checker.go#newcode170 testing/checkers/checker.go:170: return false, fmt.Sprintf("SameContents expects ...
10 years, 8 months ago (2013-08-21 08:05:28 UTC) #4
jameinel
I have a bunch of comments on a different proposal where this showed up: https://codereview.appspot.com/13082044/diff/1/testing/checkers/checker.go
10 years, 8 months ago (2013-08-21 10:33:46 UTC) #5
rog
On 21 August 2013 11:33, <john.meinel@canonical.com> wrote: > I have a bunch of comments on ...
10 years, 8 months ago (2013-08-21 12:45:26 UTC) #6
jameinel
LGTM, you addressed my comments in the other code, and you can remove the doc ...
10 years, 8 months ago (2013-08-21 12:48:16 UTC) #7
gz
10 years, 8 months ago (2013-08-21 14:15:50 UTC) #8
LGTM.

https://codereview.appspot.com/13126043/diff/7001/testing/checkers/checker.go
File testing/checkers/checker.go (right):

https://codereview.appspot.com/13126043/diff/7001/testing/checkers/checker.go...
testing/checkers/checker.go:197: mexp := make(map[interface{}]int)
Shouldn't these both have the slice Len as the second param? Again, less for
optimisation, more for the why-not factor.
Sign in to reply to this message.

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