diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-05 17:29:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-05 17:29:12 +0900 |
| commit | 49b0884701a84731652fc934d428932ff6029bd4 (patch) | |
| tree | 7477029b8ed686b9b3b06d960cab2b54ba87b579 /crates/mozart/src/commands/status.rs | |
| parent | 4623874d1c95414dcd5ae194d2561f2d98b40982 (diff) | |
| download | php-mozart-49b0884701a84731652fc934d428932ff6029bd4.tar.gz php-mozart-49b0884701a84731652fc934d428932ff6029bd4.tar.zst php-mozart-49b0884701a84731652fc934d428932ff6029bd4.zip | |
chore: remove redundant comments
Diffstat (limited to 'crates/mozart/src/commands/status.rs')
| -rw-r--r-- | crates/mozart/src/commands/status.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/crates/mozart/src/commands/status.rs b/crates/mozart/src/commands/status.rs index b8585dc..9bccef0 100644 --- a/crates/mozart/src/commands/status.rs +++ b/crates/mozart/src/commands/status.rs @@ -11,8 +11,6 @@ pub struct StatusArgs { pub verbose: bool, } -// ─── Data structures ──────────────────────────────────────────────────────── - /// Information extracted from a package's dist field. struct DistInfo { dist_type: String, @@ -44,8 +42,6 @@ struct PackageStatus { changes: Vec<FileChange>, } -// ─── Main entry point ──────────────────────────────────────────────────────── - pub async fn execute( args: &StatusArgs, cli: &super::Cli, @@ -212,8 +208,6 @@ pub async fn execute( Err(mozart_core::exit_code::bail_silent(1)) } -// ─── Helpers ────────────────────────────────────────────────────────────────── - /// Extract dist info from an installed package entry. fn extract_dist_info(pkg: &mozart_registry::installed::InstalledPackageEntry) -> Option<DistInfo> { // Try the strongly-typed `dist` field first @@ -371,16 +365,12 @@ fn compute_diff( changes } -// ─── Tests ─────────────────────────────────────────────────────────────────── - #[cfg(test)] mod tests { use super::*; use std::fs; use tempfile::tempdir; - // ── hash_directory ──────────────────────────────────────────────────────── - #[test] fn test_hash_directory() { let dir = tempdir().unwrap(); @@ -411,8 +401,6 @@ mod tests { assert_ne!(hashes["file.txt"], hashes3["file.txt"]); } - // ── compute_diff_no_changes ─────────────────────────────────────────────── - #[test] fn test_compute_diff_no_changes() { let mut map: IndexMap<String, String> = IndexMap::new(); @@ -423,8 +411,6 @@ mod tests { assert!(changes.is_empty()); } - // ── compute_diff_modified ───────────────────────────────────────────────── - #[test] fn test_compute_diff_modified() { let mut original: IndexMap<String, String> = IndexMap::new(); @@ -439,8 +425,6 @@ mod tests { assert_eq!(changes[0].path, "src/Foo.php"); } - // ── compute_diff_added ──────────────────────────────────────────────────── - #[test] fn test_compute_diff_added() { let original: IndexMap<String, String> = IndexMap::new(); @@ -454,8 +438,6 @@ mod tests { assert_eq!(changes[0].path, "src/NewFile.php"); } - // ── compute_diff_removed ────────────────────────────────────────────────── - #[test] fn test_compute_diff_removed() { let mut original: IndexMap<String, String> = IndexMap::new(); @@ -469,8 +451,6 @@ mod tests { assert_eq!(changes[0].path, "src/OldFile.php"); } - // ── compute_diff_mixed ──────────────────────────────────────────────────── - #[test] fn test_compute_diff_mixed() { let mut original: IndexMap<String, String> = IndexMap::new(); @@ -509,8 +489,6 @@ mod tests { assert_eq!(removed[0].path, "src/Removed.php"); } - // ── extract_dist_info ───────────────────────────────────────────────────── - #[test] fn test_extract_dist_info_from_dist_field() { use std::collections::BTreeMap; @@ -583,8 +561,6 @@ mod tests { assert!(extract_dist_info(&pkg).is_none()); } - // ── resolve_install_path ────────────────────────────────────────────────── - #[test] fn test_resolve_install_path_default() { use std::collections::BTreeMap; |
