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/fund.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/fund.rs')
| -rw-r--r-- | crates/mozart/src/commands/fund.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/crates/mozart/src/commands/fund.rs b/crates/mozart/src/commands/fund.rs index bebf8c2..812b17d 100644 --- a/crates/mozart/src/commands/fund.rs +++ b/crates/mozart/src/commands/fund.rs @@ -12,8 +12,6 @@ pub struct FundArgs { pub format: Option<String>, } -// ─── Data structures ──────────────────────────────────────────────────────── - struct FundingLink { url: String, funding_type: Option<String>, @@ -24,8 +22,6 @@ struct FundingEntry { links: Vec<FundingLink>, } -// ─── Main entry point ─────────────────────────────────────────────────────── - pub async fn execute( args: &FundArgs, cli: &super::Cli, @@ -60,8 +56,6 @@ pub async fn execute( Ok(()) } -// ─── Package loading ───────────────────────────────────────────────────────── - fn collect_funding_from_locked(working_dir: &Path) -> anyhow::Result<Vec<FundingEntry>> { let lock_path = working_dir.join("composer.lock"); let lock = mozart_registry::lockfile::LockFile::read_from_file(&lock_path)?; @@ -120,8 +114,6 @@ fn collect_funding_from_installed(working_dir: &Path) -> anyhow::Result<Vec<Fund Ok(entries) } -// ─── Funding helpers ────────────────────────────────────────────────────────── - fn extract_funding_links(funding_json: &[serde_json::Value]) -> Vec<FundingLink> { funding_json .iter() @@ -180,8 +172,6 @@ fn group_by_vendor(entries: &[FundingEntry]) -> BTreeMap<String, BTreeMap<String grouped } -// ─── Rendering ─────────────────────────────────────────────────────────────── - fn render_text( grouped: &BTreeMap<String, BTreeMap<String, Vec<String>>>, console: &console::Console, @@ -245,14 +235,10 @@ fn render_json( Ok(()) } -// ─── Tests ─────────────────────────────────────────────────────────────────── - #[cfg(test)] mod tests { use super::*; - // ── Helper ──────────────────────────────────────────────────────────────── - fn make_funding_json(entries: &[(&str, &str)]) -> Vec<serde_json::Value> { entries .iter() @@ -260,8 +246,6 @@ mod tests { .collect() } - // ── extract_funding_links ───────────────────────────────────────────────── - #[test] fn test_extract_funding_links_basic() { let json = make_funding_json(&[("github", "https://github.com/Seldaek")]); @@ -290,8 +274,6 @@ mod tests { assert!(links.is_empty()); } - // ── rewrite_github_url ──────────────────────────────────────────────────── - #[test] fn test_rewrite_github_url_profile() { let result = rewrite_github_url("https://github.com/Seldaek", Some("github")); @@ -318,8 +300,6 @@ mod tests { assert_eq!(result, "https://github.com/user/repo"); } - // ── group_by_vendor ─────────────────────────────────────────────────────── - #[test] fn test_group_by_vendor_basic() { let entries = vec![ @@ -382,8 +362,6 @@ mod tests { assert!(grouped.is_empty()); } - // ── Integration tests ───────────────────────────────────────────────────── - #[test] fn test_fund_from_lockfile() { use mozart_registry::lockfile::{LockFile, LockedPackage}; |
