aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/command
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-19 17:43:27 +0900
committernsfisis <nsfisis@gmail.com>2026-07-19 17:53:42 +0900
commitd0cd98cd212bc13cbcfd0fd97fc245329b57f50f (patch)
tree21bc56941b9f26247026893a9667450e275d5096 /crates/shirabe/tests/command
parent7e84d9ea31584e0dc04f04d14f6905ab9d978c72 (diff)
downloadphp-shirabe-d0cd98cd212bc13cbcfd0fd97fc245329b57f50f.tar.gz
php-shirabe-d0cd98cd212bc13cbcfd0fd97fc245329b57f50f.tar.zst
php-shirabe-d0cd98cd212bc13cbcfd0fd97fc245329b57f50f.zip
fix(search-command): un-ignore test_search by fixing JSON output and abandoned propagation
The json format branch ignored search results entirely and always wrote null. Encode results into the same name/description/abandoned/url shape Composer's array-backed repositories produce. Also fix ComposerRepository's RepositoryInterface::search adapter, which dropped the abandoned field from raw API results even when present.
Diffstat (limited to 'crates/shirabe/tests/command')
-rw-r--r--crates/shirabe/tests/command/search_command_test.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/crates/shirabe/tests/command/search_command_test.rs b/crates/shirabe/tests/command/search_command_test.rs
index 69f2930c..7806ea0f 100644
--- a/crates/shirabe/tests/command/search_command_test.rs
+++ b/crates/shirabe/tests/command/search_command_test.rs
@@ -36,7 +36,6 @@ fn run_search_case(command: Vec<(PhpMixed, PhpMixed)>, expected: &str) {
#[test]
#[serial]
-#[ignore = "searching a `package`-type repo returns incomplete results (some matching packages are dropped); the search/repository path is not yet fully ported"]
fn test_search() {
// 'by name and description'
run_search_case(