@@ -53,7 +53,7 @@ service Service {
5353 ASSERT_THAT (service, NotNull ());
5454
5555 auto const actual = FormatClassCommentsFromServiceComments (
56- *service, service->name (), absl::nullopt );
56+ *service, std::string{ service->name ()} , absl::nullopt );
5757
5858 // Verify it has exactly one trailing `///` comment.
5959 EXPECT_THAT (actual, AllOf (EndsWith (" \n ///" ), Not (EndsWith (" \n ///\n ///" ))));
@@ -82,7 +82,7 @@ service Service {
8282 ASSERT_THAT (service, NotNull ());
8383
8484 auto const actual = FormatClassCommentsFromServiceComments (
85- *service, service->name (), absl::nullopt );
85+ *service, std::string{ service->name ()} , absl::nullopt );
8686
8787 auto const lines = std::vector<std::string>{absl::StrSplit (actual, ' \n ' )};
8888 EXPECT_THAT (
@@ -119,7 +119,7 @@ message Resource {
119119 ASSERT_THAT (service, NotNull ());
120120
121121 auto const actual = FormatClassCommentsFromServiceComments (
122- *service, service->name (), absl::nullopt );
122+ *service, std::string{ service->name ()} , absl::nullopt );
123123
124124 // Verify the first reference is separated by an empty line and that it ends
125125 // with a single `///` comment.
@@ -165,7 +165,7 @@ service Service {
165165 ASSERT_THAT (service, NotNull ());
166166
167167 auto const actual = FormatClassCommentsFromServiceComments (
168- *service, service->name (), absl::nullopt );
168+ *service, std::string{ service->name ()} , absl::nullopt );
169169 // Verify the relative link is converted to an absolute link.
170170 EXPECT_THAT (actual,
171171 AllOf (HasSubstr (" [groups][google.monitoring.v3.Group]" ),
@@ -223,7 +223,7 @@ service Service {
223223 ASSERT_THAT (service, NotNull ());
224224
225225 auto const actual = FormatClassCommentsFromServiceComments (
226- *service, service->name (), " New Service comments" );
226+ *service, std::string{ service->name ()} , " New Service comments" );
227227 EXPECT_THAT (actual, AllOf (HasSubstr (" New Service comments" )));
228228}
229229
0 commit comments