-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go: Add bb-remote-execution as dependency
- Loading branch information
1 parent
4b4ba46
commit 6e69319
Showing
11 changed files
with
168,015 additions
and
3,422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
diff --git a/query.go b/query.go | ||
index f2e6d9c2a..1d6c69a6d 100644 | ||
index 0c3fe01db8..57f63f165a 100644 | ||
--- a/query.go | ||
+++ b/query.go | ||
@@ -331,6 +331,12 @@ func (q *Query) End(c Cursor) *Query { | ||
return q | ||
@@ -380,6 +380,12 @@ func (q *Query) toRunQueryRequest(req *pb.RunQueryRequest) error { | ||
return nil | ||
} | ||
|
||
+// ENFABRICA PATCH | ||
+// Export toProto for use in unit tests | ||
+func (q *Query) ToProto(req *pb.RunQueryRequest) error { | ||
+ return q.toProto(req) | ||
+ return q.toRunQueryRequest(req) | ||
+} | ||
+ | ||
// toProto converts the query to a protocol buffer. | ||
func (q *Query) toProto(req *pb.RunQueryRequest) error { | ||
func (q *Query) toProto() (*pb.Query, error) { | ||
if len(q.projection) != 0 && q.keysOnly { | ||
return nil, errors.New("datastore: query cannot both project and be keys-only") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff -urN b/BUILD.bazel c/BUILD.bazel | ||
--- b/BUILD.bazel 1969-12-31 16:00:00 | ||
+++ c/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000 | ||
@@ -0,0 +1,6 @@ | ||
+# gazelle:go_naming_convention import_alias | ||
+# gazelle:proto package | ||
+# gazelle:proto_group go_package | ||
+# gazelle:exclude gapic | ||
+# gazelle:exclude third_party | ||
+# gazelle:exclude google/example/endpointsapis/goapp | ||
diff -urN b/google/BUILD.bazel c/google/BUILD.bazel | ||
--- b/google/BUILD.bazel 1969-12-31 16:00:00 | ||
+++ c/google/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000 | ||
@@ -0,0 +1 @@ | ||
+# gazelle:prefix google.golang.org/genproto/googleapis |
Oops, something went wrong.