You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -130,16 +129,19 @@ This plan focuses on verifying the behavior for **Tuple Variants**. The relevant
130
129
***Verification Strategy:** Request user to apply changes and run `cargo check --tests --package former`. Confirm no *new* compilation errors related to documentation.
131
130
***Commit Message:**`docs(former): Add test matrix for tuple enum variants`
***Goal:** Activate and verify `#[derive(Former)]` for zero-field tuple variants (Rules 1b, 3b, 4) using tests in `enum_named_fields_*`. Verify compile error for Rule 2b.
135
134
***Target Crate(s):**`former`, `former_meta`
135
+
***Pre-Analysis:** The relevant test files (`enum_named_fields_manual.rs`, `enum_named_fields_derive.rs`, `enum_named_fields_only_test.rs`, `compile_fail/tuple_zero_subform_scalar_error.rs`) are expected to follow the Proc Macro Development Workflow structure, with `_only_test.rs` included by `_manual.rs` and `_derive.rs`.
***Relevant Behavior Rules:** Rules 1b, 2b, 3b, 4 from "Expected Enum Former Behavior Rules".
138
+
***Test Matrix:** This increment covers combinations T0.1 - T0.5 from the "Test Matrix Coverage (Tuple Variants)" section.
136
139
***Detailed Plan Step 1:** Modify `module/core/former/tests/inc/former_enum_tests/mod.rs` to uncomment `mod enum_named_fields_manual;`.
137
-
***Detailed Plan Step 2:** Verify manual implementation for `VariantZeroUnnamedDefault` and `VariantZeroUnnamedScalar` in `enum_named_fields_manual.rs` passes tests (`cargo test ... enum_named_fields_manual`). Fix if needed.
140
+
***Detailed Plan Step 2:** Verify manual implementation for `VariantZeroUnnamedDefault` and `VariantZeroUnnamedScalar` in `enum_named_fields_manual.rs` passes tests (`cargo test --package former former_enum_tests::enum_named_fields_manual`). Fix if needed.
138
141
***Detailed Plan Step 3:** Modify `module/core/former/tests/inc/former_enum_tests/mod.rs` to uncomment `mod enum_named_fields_derive;`.
139
-
***Detailed Plan Step 4:** Verify derived implementation for `VariantZeroUnnamedDefault` and `VariantZeroUnnamedScalar` in `enum_named_fields_derive.rs` passes tests (`cargo test ... enum_named_fields_derive`). Debug `tuple_zero_fields_handler.rs` if needed. *Handle widespread failures selectively if they occur.*
142
+
***Detailed Plan Step 4:** Verify derived implementation for `VariantZeroUnnamedDefault` and `VariantZeroUnnamedScalar` in `enum_named_fields_derive.rs` passes tests (`cargo test --package former former_enum_tests::enum_named_fields_derive`). Debug `tuple_zero_fields_handler.rs` if needed. *Handle widespread failures selectively if they occur.*
140
143
***Detailed Plan Step 5:** Modify `module/core/former/tests/inc/former_enum_tests/mod.rs` to uncomment `mod compile_fail;` (if not already active).
141
144
***Detailed Plan Step 6:** Verify `compile_fail/tuple_zero_subform_scalar_error.rs` fails compilation as expected (`cargo test --package former former_enum_tests::compile_fail::tuple_zero_subform_scalar_error`).
0 commit comments