Skip to content

Commit

Permalink
add comment and add assert to test to verify correct methods included.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumin8 committed Oct 29, 2024
1 parent 1f5be4b commit ec21a3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,9 @@ void selectiveGenerationTest_shouldGenerateOnlySelectiveMethods() {
assertEquals(1, services.size());
assertEquals("EchoServiceShouldGeneratePartial", services.get(0).overriddenName());
assertEquals(3, services.get(0).methods().size());
for (Method method : services.get(0).methods()) {
assertTrue(method.name().contains("ShouldInclude"));
}
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ message Foobar {
string info = 2;
}

// resource name used for message EchoRequestWithFoobarbaz.
// resource name used only for message EchoRequestWithFoobarbaz.
// should not be generated with selective generation when
// AnExcludedMethod is not config as included.
message Foobarbaz {
option (google.api.resource) = {
type: "showcase.googleapis.com/Foobarbaz"
Expand Down

0 comments on commit ec21a3b

Please sign in to comment.