Unnamed repository; edit this file 'description' to name the repository.
DAP: Move module ID tests out of events module
These were mistakenly added to the events module, they should be part of the types module.
Michael Davis 2025-01-28
parent 20151a5 · commit 9bc63c1
-rw-r--r--helix-dap/src/types.rs23
1 files changed, 11 insertions, 12 deletions
diff --git a/helix-dap/src/types.rs b/helix-dap/src/types.rs
index 9cec05e6..5a198714 100644
--- a/helix-dap/src/types.rs
+++ b/helix-dap/src/types.rs
@@ -906,17 +906,16 @@ pub mod events {
pub count: usize,
}
- #[test]
- fn test_deserialize_module_id_from_number() {
- let raw = r#"{"id": 0, "name": "Name"}"#;
- let module: super::Module = serde_json::from_str(raw).expect("Error!");
- assert_eq!(module.id, "0");
- }
+#[test]
+fn test_deserialize_module_id_from_number() {
+ let raw = r#"{"id": 0, "name": "Name"}"#;
+ let module: super::Module = serde_json::from_str(raw).expect("Error!");
+ assert_eq!(module.id, "0");
+}
- #[test]
- fn test_deserialize_module_id_from_string() {
- let raw = r#"{"id": "0", "name": "Name"}"#;
- let module: super::Module = serde_json::from_str(raw).expect("Error!");
- assert_eq!(module.id, "0");
- }
+#[test]
+fn test_deserialize_module_id_from_string() {
+ let raw = r#"{"id": "0", "name": "Name"}"#;
+ let module: super::Module = serde_json::from_str(raw).expect("Error!");
+ assert_eq!(module.id, "0");
}