mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-05 01:02:42 +00:00
ad36b769bc
...because loading up a Rocket while it's ignited is a bad idea. More seriously, because 'Rocket.ignite()' will become an "execute everything up to here" method.
11 lines
188 B
Rust
11 lines
188 B
Rust
#[test]
|
|
#[should_panic]
|
|
fn bad_dynamic_mount() {
|
|
rocket::build().mount("<name>", vec![]);
|
|
}
|
|
|
|
#[test]
|
|
fn good_static_mount() {
|
|
rocket::build().mount("/abcdefghijkl_mno", vec![]);
|
|
}
|