From 320ea9a3a418daa17174dc78f1262509b96b13b9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 19 Jul 2026 10:32:33 +0800 Subject: fix!: rename `Groupped` to `Grouped` across the codebase --- mingling_pathf/test/src/lib.rs | 4 +- .../test/src/test_files/test_grouped_derive.rs | 43 ++++++++++++++++++++++ .../test/src/test_files/test_groupped_derive.rs | 43 ---------------------- 3 files changed, 45 insertions(+), 45 deletions(-) create mode 100644 mingling_pathf/test/src/test_files/test_grouped_derive.rs delete mode 100644 mingling_pathf/test/src/test_files/test_groupped_derive.rs (limited to 'mingling_pathf/test/src') diff --git a/mingling_pathf/test/src/lib.rs b/mingling_pathf/test/src/lib.rs index 824cbbf..7e7cbd5 100644 --- a/mingling_pathf/test/src/lib.rs +++ b/mingling_pathf/test/src/lib.rs @@ -222,11 +222,11 @@ fn test_group_analyze() { } #[test] -fn test_groupped_derive_analyze() { +fn test_grouped_derive_analyze() { let analyzer = mingling_pathf::pattern_analyzer::init(); let file = current_dir() .unwrap() - .join("src/test_files/test_groupped_derive.rs"); + .join("src/test_files/test_grouped_derive.rs"); let r = analyzer.analyze_file(file).unwrap(); let required: Vec<&str> = vec![ diff --git a/mingling_pathf/test/src/test_files/test_grouped_derive.rs b/mingling_pathf/test/src/test_files/test_grouped_derive.rs new file mode 100644 index 0000000..20055e9 --- /dev/null +++ b/mingling_pathf/test/src/test_files/test_grouped_derive.rs @@ -0,0 +1,43 @@ +#[derive(Grouped)] +struct Derived1 { + value: String, +} + +#[derive(Grouped, Debug, Clone)] +struct Derived2 { + value: i32, +} + +#[derive(GroupedSerialize)] +struct Derived3 { + value: bool, +} + +#[derive(Grouped)] +enum EnumDerived1 { + A, + B, +} + +#[derive(GroupedSerialize)] +enum EnumDerived2 { + X(String), + Y(i32), +} + +pub mod sub { + #[derive(Grouped)] + struct Derived1 { + value: String, + } + + #[derive(GroupedSerialize)] + struct Derived3 { + value: bool, + } + + #[derive(Grouped)] + enum EnumDerived1 { + A, + } +} diff --git a/mingling_pathf/test/src/test_files/test_groupped_derive.rs b/mingling_pathf/test/src/test_files/test_groupped_derive.rs deleted file mode 100644 index 913587c..0000000 --- a/mingling_pathf/test/src/test_files/test_groupped_derive.rs +++ /dev/null @@ -1,43 +0,0 @@ -#[derive(Groupped)] -struct Derived1 { - value: String, -} - -#[derive(Groupped, Debug, Clone)] -struct Derived2 { - value: i32, -} - -#[derive(GrouppedSerialize)] -struct Derived3 { - value: bool, -} - -#[derive(Groupped)] -enum EnumDerived1 { - A, - B, -} - -#[derive(GrouppedSerialize)] -enum EnumDerived2 { - X(String), - Y(i32), -} - -pub mod sub { - #[derive(Groupped)] - struct Derived1 { - value: String, - } - - #[derive(GrouppedSerialize)] - struct Derived3 { - value: bool, - } - - #[derive(Groupped)] - enum EnumDerived1 { - A, - } -} -- cgit