mirror of
https://github.com/astro/deadnix.git
synced 2024-11-24 09:12:50 +03:00
dead_code_tests: add skip multiple inherits test
This commit is contained in:
parent
254c90dd6a
commit
3ec64fb49e
@ -310,6 +310,17 @@ in alive
|
||||
assert_eq!(results[0].binding.name.to_string(), "dead2");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn skip_multiple_inherits() {
|
||||
let results = run("
|
||||
let
|
||||
# deadnix: skip
|
||||
inherit dead1 dead2;
|
||||
in alive
|
||||
");
|
||||
assert_eq!(0, results.len());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn shadowed_by_skip() {
|
||||
let nix = "
|
||||
|
Loading…
Reference in New Issue
Block a user