diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-06 16:59:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-06 16:59:34 +0800 |
| commit | 815cc96a09b86eb890d6fa36d9afe8ed18afb867 (patch) | |
| tree | 7d7fa59861bf90d74935e164f7e9450a0046eedb /mingling_pathf/test/src/lib.rs | |
| parent | 2176a912668409a5a571c47a9937fe07ba6280ce (diff) | |
Remove the BasicStructPattern from pathf's pattern analyzer to eliminate
noise from plain structs not associated with any Mingling macro.
Also clean up the now-unused `basic_struct` module and update the
integration test to assert plain structs are no longer collected.
Diffstat (limited to 'mingling_pathf/test/src/lib.rs')
| -rw-r--r-- | mingling_pathf/test/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mingling_pathf/test/src/lib.rs b/mingling_pathf/test/src/lib.rs index 8b13e52..b543a15 100644 --- a/mingling_pathf/test/src/lib.rs +++ b/mingling_pathf/test/src/lib.rs @@ -58,7 +58,9 @@ fn test_pattern_analyzer_once() { let result = analyzer .analyze_file(dir.join("src/has_sub_mod.rs")) .unwrap(); - assert!(result.contains("::directly_sub_mod::DirectlySubModStruct")); + + // NO, basic_struct is disabled. + assert!(!result.contains("::directly_sub_mod::DirectlySubModStruct")); } #[test] |
