@@ -47,7 +47,7 @@ char const* const kHierarchy[] = {
4747
4848TEST (ScaffoldGeneratorTest, LibraryName) {
4949 google::cloud::cpp::generator::ServiceConfiguration service;
50- service.set_product_path (" google/cloud/test" );
50+ service.set_product_path (" google/cloud/test/ " );
5151 EXPECT_EQ (" test" , LibraryName (service));
5252
5353 service.set_product_path (" google/cloud/test/v1" );
@@ -112,7 +112,7 @@ class ScaffoldGenerator : public ::testing::Test {
112112)""" ;
113113
114114 google::cloud::cpp::generator::ServiceConfiguration service;
115- service.set_product_path (" google/cloud/test" );
115+ service.set_product_path (" google/cloud/test/ " );
116116 service.set_service_proto_path (" google/cloud/test/v1/service.proto" );
117117 service.set_initial_copyright_year (" 2034" );
118118 service_ = std::move (service);
@@ -131,15 +131,17 @@ class ScaffoldGenerator : public ::testing::Test {
131131TEST_F (ScaffoldGenerator, Vars) {
132132 auto const ga = ScaffoldVars (path (), service (), false );
133133 EXPECT_THAT (
134- ga, AllOf (Contains (Pair (" title" , " Test Only API" )),
135- Contains (Pair (" description" ,
136- " Provides a placeholder to write this test." )),
137- Contains (Pair (" library" , " test" )),
138- Contains (Pair (" copyright_year" , " 2034" )),
139- Contains (Pair (" library_prefix" , " " )),
140- Contains (Pair (" doxygen_version_suffix" , " " )),
141- Contains (Pair (" construction" , " " )),
142- Contains (Pair (" status" , HasSubstr (" **GA**" )))));
134+ ga,
135+ AllOf (Contains (Pair (" title" , " Test Only API" )),
136+ Contains (Pair (" description" ,
137+ " Provides a placeholder to write this test." )),
138+ Contains (Pair (" library" , " test" )),
139+ Contains (Pair (" product_options_page" , " google-cloud-test-options" )),
140+ Contains (Pair (" copyright_year" , " 2034" )),
141+ Contains (Pair (" library_prefix" , " " )),
142+ Contains (Pair (" doxygen_version_suffix" , " " )),
143+ Contains (Pair (" construction" , " " )),
144+ Contains (Pair (" status" , HasSubstr (" **GA**" )))));
143145
144146 auto const experimental = ScaffoldVars (path (), service (), true );
145147 EXPECT_THAT (
@@ -148,6 +150,7 @@ TEST_F(ScaffoldGenerator, Vars) {
148150 Contains (Pair (" description" ,
149151 " Provides a placeholder to write this test." )),
150152 Contains (Pair (" library" , " test" )),
153+ Contains (Pair (" product_options_page" , " google-cloud-test-options" )),
151154 Contains (Pair (" copyright_year" , " 2034" )),
152155 Contains (Pair (" library_prefix" , " experimental-" )),
153156 Contains (Pair (" doxygen_version_suffix" , " (Experimental)" )),
@@ -242,6 +245,16 @@ to Provides a placeholder to write this test.
242245 EXPECT_THAT (actual, HasSubstr (" **GA**" ));
243246}
244247
248+ TEST_F (ScaffoldGenerator, DoxygenOptionsPage) {
249+ auto const vars = ScaffoldVars (path (), service (), false );
250+ std::ostringstream os;
251+ GenerateDoxygenOptionsPage (os, vars);
252+ auto const actual = std::move (os).str ();
253+ EXPECT_THAT (actual, HasSubstr (R"""(
254+ @defgroup google-cloud-test-options Test Only API Configuration Options
255+ )""" ));
256+ }
257+
245258TEST_F (ScaffoldGenerator, QuickstartReadme) {
246259 auto const vars = ScaffoldVars (path (), service (), false );
247260 std::ostringstream os;
0 commit comments