@@ -95,7 +95,7 @@ def test_go_gin_echo_chi():
9595
9696
9797def test_go_negatives ():
98- """Review Focus 3: look -alikes and missing imports give no route, mount or table."""
98+ """Look -alikes and missing imports give no route, mount or table."""
9999 http = ('q := r.URL.Query()\n q.Get("id")\n resp, _ := client.R().Get("/orders")\n h.Handle(event)\n '
100100 'mux.HandleFunc("orders", h)\n mux.HandleFunc(path, h)\n ' )
101101 assert found ("go" , http , ["net/http" ]) == []
@@ -180,7 +180,7 @@ def test_aspnet_minimal_api_and_tables():
180180
181181
182182def test_csharp_negatives ():
183- """Review Focus 3 ."""
183+ """Look-alikes give nothing ."""
184184 # minimal APIs run without `when` (implicit usings: Program.cs names nothing); the look-alikes give nothing
185185 src = ('app.MapGet("/ping", h);\n config.Map("/x");\n dict.MapGetter("/y", h);\n var g = app.MapGroup("/g");\n '
186186 'cfg.MapGet("/one");\n m.MapGet(path, h);\n m.MapPost($"/i/{x}", h);\n MapGet("/bare", h);\n '
@@ -251,7 +251,7 @@ def test_axum_forms_and_actix():
251251
252252
253253def test_rust_negatives ():
254- """Review Focus 3 ."""
254+ """Look-alikes give nothing ."""
255255 src = ('.route("/a", get(h))\n .nest("/n", r)\n #[get("/x")]\n fn x() {}\n web::scope("/v1")\n '
256256 'map.route("k")\n #[test]\n fn t() {}\n ' )
257257 assert found ("rust" , src , ["std::collections" ]) == [] and found_mounts ("rust" , src , ["serde" ]) == []
@@ -303,7 +303,7 @@ def test_rails_routes(make_repo):
303303
304304
305305def test_ruby_negatives_and_tables ():
306- """Review Focus 3: Rails needs `to: "c#a"`; Sinatra needs its import and a block; tables need ActiveRecord."""
306+ """Rails needs `to: "c#a"`; Sinatra needs its import and a block; tables need ActiveRecord."""
307307 src = ('get "/x"\n get "/y", to: redirect("/z")\n get "/w", to: "nohash"\n client.get "/v", to: "a#b"\n '
308308 'cache.get("/k") do\n end\n ' )
309309 assert found ("ruby" , src , []) == []
@@ -413,7 +413,7 @@ def test_expand_entry_shape():
413413
414414
415415def test_php_negatives_and_tables ():
416- """Review Focus 3 ."""
416+ """Look-alikes give nothing ."""
417417 # a routes file may call the global `Route` alias without a `use`: the Route patterns run without `when`
418418 route = "Route::get('/x', [C::class, 'a']);\n Route::match(['get'], '/m', h);\n " \
419419 "Route::middleware(['auth'])->prefix('v1');\n "
@@ -454,7 +454,7 @@ def test_php_import_kinds():
454454
455455@pytest .mark .parametrize ("lang" , ["go" , "csharp" , "rust" , "ruby" , "php" ])
456456def test_every_pack_regex_entry_has_when (lang ):
457- """Review Focus 3: a pack regex without `when` fires on any file of the language. The exceptions are files
457+ """A pack regex without `when` fires on any file of the language. The exceptions are files
458458 that import nothing, each with a tight regex and look-alike tests: Rails routes and resources, C#
459459 minimal APIs (implicit usings), Laravel routes (the global `Route` alias), Rails models (`self.table_name`)
460460 and gorm models (`TableName`)."""
0 commit comments