Luobniz21 64979c5869 aa start: add TDD test cases for -u option
Add test coverage for the three new branches added with userId support:

1. Test -u option without argument (branch in option error handling)
2. Test -u option with invalid userId (non-numeric or negative)
3. Test -u option with valid userId (100 and 0)

Test cases:
- Aa_Command_Start_5100: Verify "aa start -a <ability> -b <bundle> -u" without argument
- Aa_Command_Start_5200: Verify "aa start -a <ability> -b <bundle> -u xxx" (non-numeric)
- Aa_Command_Start_5300: Verify "aa start -a <ability> -b <bundle> -u -1" (negative)
- Aa_Command_Start_5400: Verify "aa start -a <ability> -b <bundle> -u 100" (valid)
- Aa_Command_Start_5500: Verify "aa start -a <ability> -b <bundle> -u 0" (valid)

Note: The -W option conflict warning is covered implicitly as it only logs
a warning and doesn't affect command execution result.

Signed-off-by: Luobniz21 <luoyicong@h-partners.com>

Co-Authored-By: Agent
2026-03-25 09:25:31 +08:00
2026-01-20 16:44:50 +08:00
2022-07-05 17:15:19 +08:00
2026-03-01 12:43:08 +08:00
2026-03-21 12:34:16 +08:00
2026-02-13 12:02:43 +08:00
2021-06-02 02:20:34 +08:00
2025-12-30 17:03:47 +08:00
2021-06-02 02:20:34 +08:00
2026-02-12 17:13:30 +08:00
2026-03-21 21:40:43 +08:00
2025-10-14 12:48:30 +08:00
2026-01-23 14:39:35 +08:00
2022-06-30 15:32:07 +08:00
2026-03-04 11:03:50 +08:00
2024-06-07 10:32:48 +08:00
S
Description
暂无描述
146 MiB
Languages
C++ 98.1%
C 1.5%
JavaScript 0.2%
TypeScript 0.1%