Skip to content

Commit

Permalink
unit test: remove redundant assertions and move unit test rules into …
Browse files Browse the repository at this point in the history
…lang dir
  • Loading branch information
cypherkitty committed Mar 1, 2025
1 parent 64e3fba commit 2fbbcad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions meta-secret/core/src/node/db/descriptors/object_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
}

0 comments on commit 2fbbcad

Please sign in to comment.