@@ -287,15 +287,15 @@ func TestDeriveLibraryName(t *testing.T) {
287287 apiPath string
288288 want string
289289 }{
290- {"dart" , "google/cloud/secretmanager/v1" , "google_cloud_secretmanager_v1" },
291- {"python" , "google/cloud/secretmanager/v1" , "google-cloud-secretmanager" },
292- {"python" , "google/cloud/secretmanager/v1beta2" , "google-cloud-secretmanager" },
293- {"python" , "google/cloud/storage/v2alpha" , "google-cloud-storage" },
294- {"python" , "google/maps/addressvalidation/v1" , "google-maps-addressvalidation" },
295- {"python" , "google/api/v1" , "google-api" },
296- {"rust" , "google/cloud/secretmanager/v1" , "google-cloud-secretmanager-v1" },
297- {"rust" , "google/cloud/secretmanager/v1beta2" , "google-cloud-secretmanager-v1beta2" },
298- {"fake" , "google/cloud/secretmanager/v1" , "google-cloud-secretmanager-v1" },
290+ {config . LanguageDart , "google/cloud/secretmanager/v1" , "google_cloud_secretmanager_v1" },
291+ {config . LanguagePython , "google/cloud/secretmanager/v1" , "google-cloud-secretmanager" },
292+ {config . LanguagePython , "google/cloud/secretmanager/v1beta2" , "google-cloud-secretmanager" },
293+ {config . LanguagePython , "google/cloud/storage/v2alpha" , "google-cloud-storage" },
294+ {config . LanguagePython , "google/maps/addressvalidation/v1" , "google-maps-addressvalidation" },
295+ {config . LanguagePython , "google/api/v1" , "google-api" },
296+ {config . LanguageRust , "google/cloud/secretmanager/v1" , "google-cloud-secretmanager-v1" },
297+ {config . LanguageRust , "google/cloud/secretmanager/v1beta2" , "google-cloud-secretmanager-v1beta2" },
298+ {config . LanguageFake , "google/cloud/secretmanager/v1" , "google-cloud-secretmanager-v1" },
299299 } {
300300 t .Run (test .language + "/" + test .apiPath , func (t * testing.T ) {
301301 got := deriveLibraryName (test .language , test .apiPath )
0 commit comments