diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-06 04:22:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-06 04:23:22 +0900 |
| commit | 3d4a0cadc950d4440251efa11b55b0bfb0afdef7 (patch) | |
| tree | cf1cd680867b9aa633eafe6332b881711b738823 /crates/shirabe/tests | |
| parent | ce6192f1cfaac63457b173f573ada661a4665bfb (diff) | |
| download | php-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')
| -rw-r--r-- | crates/shirabe/tests/command/init_command_test.rs | 3 | ||||
| -rw-r--r-- | crates/shirabe/tests/question/strict_confirmation_question_test.rs | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/crates/shirabe/tests/command/init_command_test.rs b/crates/shirabe/tests/command/init_command_test.rs index 914680fb..e82f2bd7 100644 --- a/crates/shirabe/tests/command/init_command_test.rs +++ b/crates/shirabe/tests/command/init_command_test.rs @@ -53,7 +53,6 @@ fn opt_list(name: &str, values: &[&str]) -> (PhpMixed, PhpMixed) { ) } -/// @return iterable<string, array{0: string, 1: string|null, 2: string}> fn valid_author_string_provider() -> Vec<(&'static str, Option<&'static str>, &'static str)> { vec![ // simple @@ -159,7 +158,6 @@ fn test_namespace_from_missing_package_name() { assert_eq!(None, namespace); } -/// @return iterable<string, array{0: array<string, mixed>, 1: array<string, mixed>}> fn run_data_provider() -> Vec<(serde_json::Value, Vec<(PhpMixed, PhpMixed)>)> { vec![ // name argument @@ -384,7 +382,6 @@ enum InvalidExpectation { StderrMatches(&'static str), } -/// @return iterable<string, array{0: class-string<\Throwable>|null, 1: string|null, 2: array<string, mixed>}> fn run_invalid_data_provider() -> Vec<(InvalidExpectation, Vec<(PhpMixed, PhpMixed)>)> { vec![ // invalid name argument 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