Merge lp://staging/~xavi-garcia-mena/go-unityscopes/replies-interfaces into lp://staging/go-unityscopes/v2

Proposed by Xavi Garcia
Status: Needs review
Proposed branch: lp://staging/~xavi-garcia-mena/go-unityscopes/replies-interfaces
Merge into: lp://staging/go-unityscopes/v2
Prerequisite: lp://staging/~xavi-garcia-mena/go-unityscopes/go-subsearch
Diff against target: 640 lines (+198/-168)
6 files modified
reply.go (+106/-78)
tests/aggregated/aggregated.go (+71/-72)
tests/goscope/goscope.go (+6/-6)
tests/simple-scope-2/simple-scope-2.go (+3/-3)
tests/simple-scope/simple-scope.go (+3/-3)
unityscope.go (+9/-6)
To merge this branch: bzr merge lp://staging/~xavi-garcia-mena/go-unityscopes/replies-interfaces
Reviewer Review Type Date Requested Status
Kyle Fazzari (community) Approve
James Henstridge Pending
Review via email: mp+261641@code.staging.launchpad.net

Commit message

Moved SearchReply and PreviewReply to be interfaces to make it possible to mock them.

Description of the change

Moved SearchReply and PreviewReply to be interfaces to make it possible to mock them.

To post a comment you must log in.
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

This is looking good! I have one concern about the SearchReply interface (comments inline). Also, will this require an API version number change (i.e. v3) due to the changes in unityscope.go?

review: Needs Fixing
Revision history for this message
Xavi Garcia (xavi-garcia-mena) wrote :

Thanks for the review!

A testing Category is added in a later branch.

Commented inline.

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Works for me!

review: Approve

Unmerged revisions

84. By Xavi Garcia

Moved PreviewReply and SearchReply to be interfaces and make it possible to be mocked

83. By Xavi Garcia

Added Finished method to SearchListener. Some functions moved from goscope.go to reply.go.

82. By Xavi Garcia

Removed SetSearchReply and GetSearchReply from the subsearch listener, as they are no longer needed

81. By Xavi Garcia

Moved subsearch method to SeachReply. Working version

80. By Xavi Garcia

Moved Subsearch to SearchReply. Passed go fmt to the test files. NOTE: This branch is still work in progress, it's not fully functional

79. By Xavi Garcia

Removed binary

78. By Xavi Garcia

Hide wait mechanism for child scopes to the developer. Now Aggregated scopes wait by default transparently

77. By Xavi Garcia

Removed some comments

76. By Xavi Garcia

Fixed typo and removed commented include

75. By Xavi Garcia

Added Subsearch method to retrieve results from child scopes. Added scope-harness tests for aggregated scopes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: