aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/question/strict_confirmation_question_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-06 04:22:46 +0900
committernsfisis <nsfisis@gmail.com>2026-08-06 04:23:22 +0900
commit3d4a0cadc950d4440251efa11b55b0bfb0afdef7 (patch)
treecf1cd680867b9aa633eafe6332b881711b738823 /crates/shirabe/tests/question/strict_confirmation_question_test.rs
parentce6192f1cfaac63457b173f573ada661a4665bfb (diff)
downloadphp-shirabe-3d4a0cadc950d4440251efa11b55b0bfb0afdef7.tar.gz
php-shirabe-3d4a0cadc950d4440251efa11b55b0bfb0afdef7.tar.zst
php-shirabe-3d4a0cadc950d4440251efa11b55b0bfb0afdef7.zip
chore: drop @param/@return tags that only restate Rust types
The ported docblocks copied @param and @return straight from the PHP source. When such a tag carries nothing but a type and an argument name, the Rust signature already states it, so the line is noise. Tags whose text adds prose beyond the type are kept. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/question/strict_confirmation_question_test.rs')
-rw-r--r--crates/shirabe/tests/question/strict_confirmation_question_test.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/shirabe/tests/question/strict_confirmation_question_test.rs b/crates/shirabe/tests/question/strict_confirmation_question_test.rs
index 916daad1..f7f79eb6 100644
--- a/crates/shirabe/tests/question/strict_confirmation_question_test.rs
+++ b/crates/shirabe/tests/question/strict_confirmation_question_test.rs
@@ -13,7 +13,6 @@ use shirabe_php_shim::PhpMixed;
const TRUE_ANSWER_REGEX: &str = "/^y(?:es)?$/i";
const FALSE_ANSWER_REGEX: &str = "/^no?$/i";
-/// @return string[][]
fn get_ask_confirmation_bad_data() -> Vec<&'static str> {
vec!["not correct", "no more", "yes please", "yellow"]
}
@@ -61,7 +60,6 @@ fn test_ask_confirmation() {
}
}
-/// @return mixed[][]
fn get_ask_confirmation_data() -> Vec<(&'static str, bool, bool)> {
vec![
("", true, true),
@@ -101,7 +99,6 @@ fn test_ask_confirmation_with_custom_true_and_false_answer() {
);
}
-/// @return resource
fn get_input_stream(input: &str) -> shirabe_php_shim::PhpResource {
let stream = shirabe_php_shim::php_fopen_resource("php://memory", "r+");
@@ -119,7 +116,6 @@ fn create_output_interface() -> std::rc::Rc<std::cell::RefCell<dyn OutputInterfa
std::rc::Rc::new(std::cell::RefCell::new(output))
}
-/// @return array{ArrayInput, QuestionHelper}
fn create_input(entry: &str) -> (ArrayInput, QuestionHelper) {
let mut input = ArrayInput::new(
vec![(