make spec infra more ergonomic
Signed-off-by: Onur Özkan <work@onurozkan.dev>
This commit is contained in:
1 parent
b0a7a9bb03
commit
85559bd2d5
20 files changed
+74
-123
No files matched your search
@@ -1,17 +1,14 @@
|
||||
#[test]
|
||||
fn accepts_existing_sidecar_spec() {
|
||||
fn accepts_no_spec_reason() {
|
||||
let tests = trybuild::TestCases::new();
|
||||
tests.pass("tests/ui/flight_core_contract.rs");
|
||||
tests.pass("tests/ui/no_spec.rs");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rejects_invalid_spec_uses() {
|
||||
fn rejects_invalid_no_spec_invocations() {
|
||||
let tests = trybuild::TestCases::new();
|
||||
|
||||
tests.compile_fail("tests/ui/fail_missing_argument.rs");
|
||||
tests.compile_fail("tests/ui/fail_legacy_named_argument.rs");
|
||||
tests.compile_fail("tests/ui/fail_non_string_argument.rs");
|
||||
tests.compile_fail("tests/ui/fail_invalid_suffix.rs");
|
||||
tests.compile_fail("tests/ui/fail_missing_sidecar.rs");
|
||||
tests.compile_fail("tests/ui/fail_non_module_item.rs");
|
||||
tests.compile_fail("tests/ui/fail_empty_explanation.rs");
|
||||
}
|
||||
Reference in new issue
Block a user