We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c00bd8 commit 7e9c7acCopy full SHA for 7e9c7ac
crates/test_utils/src/lib.rs
@@ -426,6 +426,12 @@ fn parse_fixture_gets_full_meta() {
426
427
let parsed = &parsed[0];
428
assert_eq!("\n", parsed.text);
429
+
430
+ let meta = &parsed.meta;
431
+ assert_eq!("foo", meta.crate_name().unwrap());
432
+ assert_eq!("/lib.rs", meta.path());
433
+ assert!(meta.cfg_options().is_some());
434
+ assert_eq!(2, meta.env().count());
435
}
436
437
/// Same as `parse_fixture`, except it allow empty fixture
0 commit comments