From 2fbbcadca0c6b6dc5b18df26bb376029ba2dca63 Mon Sep 17 00:00:00 2001 From: cypherkitty Date: Sat, 1 Mar 2025 14:49:22 -0800 Subject: [PATCH] unit test: remove redundant assertions and move unit test rules into lang dir --- .../.cursor/rules/{ => lang}/unit_test/unit_test.mdc | 1 + .../core/src/node/db/descriptors/object_descriptor.rs | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) rename meta-secret/.cursor/rules/{ => lang}/unit_test/unit_test.mdc (99%) diff --git a/meta-secret/.cursor/rules/unit_test/unit_test.mdc b/meta-secret/.cursor/rules/lang/unit_test/unit_test.mdc similarity index 99% rename from meta-secret/.cursor/rules/unit_test/unit_test.mdc rename to meta-secret/.cursor/rules/lang/unit_test/unit_test.mdc index bf103dd..2264495 100644 --- a/meta-secret/.cursor/rules/unit_test/unit_test.mdc +++ b/meta-secret/.cursor/rules/lang/unit_test/unit_test.mdc @@ -2,5 +2,6 @@ description: Unit tests rules applied to the rust project (meta secret) globs: **/*.rs --- + - write unit tests in the file that is open right now - don't create a new file for unit tests diff --git a/meta-secret/core/src/node/db/descriptors/object_descriptor.rs b/meta-secret/core/src/node/db/descriptors/object_descriptor.rs index 1f75afc..f0fbfc8 100644 --- a/meta-secret/core/src/node/db/descriptors/object_descriptor.rs +++ b/meta-secret/core/src/node/db/descriptors/object_descriptor.rs @@ -198,12 +198,5 @@ mod fqdn_tests { let vault_fqdn = vault_descriptor.fqdn(); assert_eq!(vault_fqdn.id_str(), "Vault:test_vault"); } - - { - let creds_device = CredentialsDescriptor::Device; - let creds_descriptor = creds_device.to_obj_desc(); - let creds_fqdn = creds_descriptor.fqdn(); - assert_eq!(creds_fqdn.id_str(), "DeviceCreds:index"); - } } } \ No newline at end of file