Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Issue 1279703003: Get rid of awkward proto argument to Interface.Run (Closed)

Created:
5 years, 4 months ago by iannucci
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://github.com/luci/gae.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : In/Out return Type not interface{} #

Total comments: 5

Patch Set 3 : tests #

Patch Set 4 : make it have a consistent error message, panic #

Patch Set 5 : add todo #

Total comments: 1

Patch Set 6 : test name #

Patch Set 7 : test for func assertion #

Patch Set 8 : rename test helper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -49 lines) Patch
M service/datastore/checkfilter_test.go View 1 chunk +1 line, -1 line 0 comments Download
M service/datastore/datastore.go View 1 2 3 4 3 chunks +35 lines, -11 lines 0 comments Download
M service/datastore/datastore_test.go View 1 2 3 4 5 6 7 9 chunks +46 lines, -20 lines 0 comments Download
M service/datastore/interface.go View 2 chunks +8 lines, -15 lines 0 comments Download
M service/datastore/raw_interface.go View 1 chunk +7 lines, -2 lines 0 comments Download
M service/datastore/reflect.go View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
iannucci
5 years, 4 months ago (2015-08-07 20:12:40 UTC) #1
dnj
https://codereview.chromium.org/1279703003/diff/1/service/datastore/datastore.go File service/datastore/datastore.go (right): https://codereview.chromium.org/1279703003/diff/1/service/datastore/datastore.go#newcode33 service/datastore/datastore.go:33: return fmt.Errorf("cb has the wrong number of args: %T", ...
5 years, 4 months ago (2015-08-07 20:21:02 UTC) #2
iannucci
On 2015/08/07 20:12:40, iannucci wrote: Pay attention to the test changes, which reflect the 'real ...
5 years, 4 months ago (2015-08-07 20:21:26 UTC) #3
iannucci
https://codereview.chromium.org/1279703003/diff/1/service/datastore/datastore.go File service/datastore/datastore.go (right): https://codereview.chromium.org/1279703003/diff/1/service/datastore/datastore.go#newcode33 service/datastore/datastore.go:33: return fmt.Errorf("cb has the wrong number of args: %T", ...
5 years, 4 months ago (2015-08-07 20:22:03 UTC) #4
Vadim Sh.
lgtm with nits https://codereview.chromium.org/1279703003/diff/20001/service/datastore/datastore.go File service/datastore/datastore.go (right): https://codereview.chromium.org/1279703003/diff/20001/service/datastore/datastore.go#newcode32 service/datastore/datastore.go:32: if cbTyp.NumIn() != 2 || cbTyp.NumOut() ...
5 years, 4 months ago (2015-08-07 20:23:05 UTC) #5
iannucci
fixed ptal https://codereview.chromium.org/1279703003/diff/20001/service/datastore/datastore.go File service/datastore/datastore.go (right): https://codereview.chromium.org/1279703003/diff/20001/service/datastore/datastore.go#newcode32 service/datastore/datastore.go:32: if cbTyp.NumIn() != 2 || cbTyp.NumOut() != ...
5 years, 4 months ago (2015-08-07 20:37:50 UTC) #6
dnj
lgtm w/ nit https://codereview.chromium.org/1279703003/diff/80001/service/datastore/datastore_test.go File service/datastore/datastore_test.go (right): https://codereview.chromium.org/1279703003/diff/80001/service/datastore/datastore_test.go#newcode769 service/datastore/datastore_test.go:769: ds.Run(q, cb) nit: It's not clear ...
5 years, 4 months ago (2015-08-07 20:44:28 UTC) #7
iannucci
Ok, renamed (though I don't like ShouldPanic, because it can swallow other sorts of panics, ...
5 years, 4 months ago (2015-08-07 21:05:42 UTC) #8
iannucci
5 years, 4 months ago (2015-08-07 21:05:50 UTC) #9
Message was sent while issue was closed.
Committed patchset #8 (id:140001) manually as
d09746539bf0eb3f7187d0593a1a17062c57acd9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698