File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -81,29 +81,13 @@ well as the `ComposableState` implementation for the `Test` struct.
8181 field depending on another appears after it. This is important for cases where one field's
8282 ` apply_delta ` relies on another field's state.
8383
84- - ** Handling ` None ` Deltas** : Even if a field's delta is ` None ` , its ` apply_delta ` method will still
85- be called. Use this to handle dependencies on the parent state or other fields.
86-
87- ## Testing
88-
89- The crate includes comprehensive tests demonstrating a common pattern:
90-
91- 1 . Create two versions of the state (` old ` and ` new ` ).
92- 2 . Call ` verify ` on both.
93- 3 . Generate a delta with ` new.delta(&old, ...) ` .
94- 4 . Clone ` old ` , apply the delta, and assert equality with ` new ` .
95-
96- This pattern ensures that your delta logic is accurate and that ` apply_delta ` maintains the
97- necessary invariants.
98-
9984## License
10085
101- This project is licensed under the ** GNU Lesser General Public License v2.1** (LGPL-2.1-only). See
102- the ` LICENSE ` file for the full text.
86+ This project is licensed under the ** GNU Lesser General Public License v2.1** (LGPL-2.1-only).
10387
10488## Contributing
10589
106- Contributions are welcome. Please run ` cargo test --all ` before submitting a pull request .
90+ Pull requests are welcome.
10791
10892---
10993
You can’t perform that action at this time.
0 commit comments