Skip to content

Commit 8ead5d3

Browse files
committed
add test coverage for pipelining with groups
1 parent 8f1cad4 commit 8ead5d3

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

capnp-rpc/test/test.capnp

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ interface TestPipeline {
102102

103103
struct Box {
104104
cap @0 :TestInterface;
105+
106+
foo :group {
107+
capInGroup @1 :TestInterface;
108+
}
105109
}
106110
}
107111

capnp-rpc/test/test.rs

+4
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ fn basic_pipelining() {
286286

287287
let promise = request.send();
288288

289+
// This is just here to check that code generation for pipelines
290+
// inside of groups works correctly.
291+
let _ = promise.pipeline.get_out_box().get_foo().get_cap_in_group();
292+
289293
let mut pipeline_request = promise.pipeline.get_out_box().get_cap().foo_request();
290294
pipeline_request.get().set_i(321);
291295
let pipeline_promise = pipeline_request.send();

capnpc/test/test.capnp

+1-1
Original file line numberDiff line numberDiff line change
@@ -803,4 +803,4 @@ struct Issue260(T, Q) {
803803
val1 @2 :Q;
804804
val2 @3 :Int8;
805805
}
806-
}
806+
}

0 commit comments

Comments
 (0)