1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-30 18:44:35 +01:00
actix-web/actix-web-codegen/tests/trybuild
Jonathan Lim 3db7891303
Scope macro (#3136)
* add scope proc macro

* Update scope macro code to work with current HttpServiceFactory

* started some test code

* add some unit tests

* code formatting cleanup

* add another test for combining and calling 2 scopes

* format code with formatter

* Update actix-web-codegen/src/lib.rs with comment documentation fix

Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com>

* work in progress. revised procedural macro to change othe macro call

* add tests again. refactor nested code.

* clean up code. fix bugs with route and method attributes with parameters

* clean up for rust fmt

* clean up for rust fmt

* fix out of date comment for scope macro

* sync to master branch by adding test_wrap

* needed to format code

* test: split out scope tests

* test: add negative tests

* chore: move imports back inside (?)

* docs: tweak scope docs

* fix: prevent trailing slashes in scope prefixes

* chore: address clippy lints

---------

Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2024-06-07 22:10:48 +00:00
..
docstring-ok.rs migrate integration testing to new crate (#2112) 2021-04-02 08:26:59 +01:00
route-custom-lowercase.rs added support for creating custom methods with route macro (#2969) 2023-02-06 12:40:41 +00:00
route-custom-lowercase.stderr test: fix trybuild tests 2024-02-13 02:14:03 +00:00
route-custom-method.rs refactor codegen route guards 2023-02-06 17:06:47 +00:00
route-duplicate-method-fail.rs migrate integration testing to new crate (#2112) 2021-04-02 08:26:59 +01:00
route-duplicate-method-fail.stderr test: fix trybuild tests 2024-02-13 02:14:03 +00:00
route-malformed-path-fail.rs compile time validation of path (#2350) 2021-08-30 21:50:40 +01:00
route-malformed-path-fail.stderr Do not require actix-router default features from actix-web-codegen (#3372) 2024-06-07 14:08:13 +00:00
route-missing-method-fail.rs migrate integration testing to new crate (#2112) 2021-04-02 08:26:59 +01:00
route-missing-method-fail.stderr test: fix trybuild tests 2024-02-13 02:14:03 +00:00
route-ok.rs migrate integration testing to new crate (#2112) 2021-04-02 08:26:59 +01:00
routes-missing-args-fail.rs routes macro allowing multiple paths per handler (#2718) 2022-07-04 04:31:49 +00:00
routes-missing-args-fail.stderr test: fix trybuild tests 2024-02-13 02:14:03 +00:00
routes-missing-method-fail.rs routes macro allowing multiple paths per handler (#2718) 2022-07-04 04:31:49 +00:00
routes-missing-method-fail.stderr test: fix trybuild tests 2024-02-13 02:14:03 +00:00
routes-ok.rs routes macro allowing multiple paths per handler (#2718) 2022-07-04 04:31:49 +00:00
scope-invalid-args.rs Scope macro (#3136) 2024-06-07 22:10:48 +00:00
scope-invalid-args.stderr Scope macro (#3136) 2024-06-07 22:10:48 +00:00
scope-missing-args.rs Scope macro (#3136) 2024-06-07 22:10:48 +00:00
scope-missing-args.stderr Scope macro (#3136) 2024-06-07 22:10:48 +00:00
scope-on-handler.rs Scope macro (#3136) 2024-06-07 22:10:48 +00:00
scope-on-handler.stderr Scope macro (#3136) 2024-06-07 22:10:48 +00:00
scope-trailing-slash.rs Scope macro (#3136) 2024-06-07 22:10:48 +00:00
scope-trailing-slash.stderr Scope macro (#3136) 2024-06-07 22:10:48 +00:00
simple-fail.rs prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
simple-fail.stderr fix: wrap attribute codegen regression when using expression (#3119) 2023-08-29 21:27:36 +01:00
simple.rs migrate integration testing to new crate (#2112) 2021-04-02 08:26:59 +01:00
test-runtime.rs add test runtime macro (#2409) 2021-10-19 17:30:32 +01:00