aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/search.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-05 17:29:12 +0900
committernsfisis <nsfisis@gmail.com>2026-05-05 17:29:12 +0900
commit49b0884701a84731652fc934d428932ff6029bd4 (patch)
tree7477029b8ed686b9b3b06d960cab2b54ba87b579 /crates/mozart/src/commands/search.rs
parent4623874d1c95414dcd5ae194d2561f2d98b40982 (diff)
downloadphp-mozart-49b0884701a84731652fc934d428932ff6029bd4.tar.gz
php-mozart-49b0884701a84731652fc934d428932ff6029bd4.tar.zst
php-mozart-49b0884701a84731652fc934d428932ff6029bd4.zip
chore: remove redundant comments
Diffstat (limited to 'crates/mozart/src/commands/search.rs')
-rw-r--r--crates/mozart/src/commands/search.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/crates/mozart/src/commands/search.rs b/crates/mozart/src/commands/search.rs
index 023bfdf..2ee84de 100644
--- a/crates/mozart/src/commands/search.rs
+++ b/crates/mozart/src/commands/search.rs
@@ -221,14 +221,10 @@ pub async fn execute(
Ok(())
}
-// ─── Tests ──────────────────────────────────────────────────────────────────
-
#[cfg(test)]
mod tests {
use super::*;
- // ── format_count ────────────────────────────────────────────────────────
-
#[test]
fn test_format_count_small() {
assert_eq!(format_count(0), "0");
@@ -251,8 +247,6 @@ mod tests {
assert_eq!(format_count(2_500_000), "2.5M");
}
- // ── SearchResponse parsing ───────────────────────────────────────────────
-
#[test]
fn test_parse_search_response() {
use mozart_registry::packagist::SearchResponse;
@@ -360,8 +354,6 @@ mod tests {
);
}
- // ── only_name filter ─────────────────────────────────────────────────────
-
#[test]
fn test_passes_only_name_match() {
let result = make_result("monolog/monolog");
@@ -392,8 +384,6 @@ mod tests {
assert!(passes_only_name(&result, "monolog"));
}
- // ── only_vendor filter ───────────────────────────────────────────────────
-
#[test]
fn test_passes_only_vendor_match() {
let result = make_result("monolog/monolog");
@@ -420,8 +410,6 @@ mod tests {
assert!(!passes_only_vendor(&result, "mono"));
}
- // ── is_abandoned ─────────────────────────────────────────────────────────
-
#[test]
fn test_is_abandoned_none() {
let result = make_result("vendor/pkg");
@@ -456,8 +444,6 @@ mod tests {
assert!(!is_abandoned(&result));
}
- // ── serialization ────────────────────────────────────────────────────────
-
#[test]
fn test_search_result_output_matches_composer_schema() {
let result = SearchResult {
@@ -504,8 +490,6 @@ mod tests {
assert_eq!(parsed["abandoned"], "new/pkg");
}
- // ── only_vendor deduplication ───────────────────────────────────────────
-
#[test]
fn test_only_vendor_deduplicates_vendor_names() {
let results = [
@@ -527,8 +511,6 @@ mod tests {
assert_eq!(vendor_names, vec!["monolog"]);
}
- // ── helper ───────────────────────────────────────────────────────────────
-
fn make_result(name: &str) -> SearchResult {
SearchResult {
name: name.to_string(),