[unit-tests] ユニットテスト補完: IntermissionCommandCmd#862
Merged
Conversation
ヘルプドキュメントの記載に基づき、IntermissionCommandCmd の ユニットテスト 6 件を OptionAndEventCmdTests.cs に追加。 テスト内容: - コマンド登録: IntermissionCommand(name) = file のグローバル変数が設定される - コマンド削除: 「削除」指定で変数が削除される - コマンド上書き: 同名コマンドに対して再実行するとファイル名が更新される - 引数不足エラー: ArgNum != 3 の場合に -1 が返る - 引数なしエラー - 未定義コマンドの削除: エラーなく正常終了する Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧪 ユニットテスト補完 レポート (2026-03-14)
追加したテスト / Tests Added
IntermissionCommandCmd: 6件追加 (OptionAndEventCmdTests.cs)合計: 6件追加
カバレッジサマリー / Coverage Summary
IntermissionCommandCmd(6件)MoveCmd(実行テストなし),QuickLoadCmd,CallIntermissionCommandCmd,MakePilotListCmd,MakeUnitListCmd,LoadCmd(いずれも GUI 依存が強く単体テストが困難)テスト詳細 / Test Details
ヘルプドキュメント (
IntermissionCommandコマンド.md) に基づいてテストを作成:IntermissionCommandCmd_RegistersCommand_SetsGlobalVariableIntermissionCommand(name) = fileのグローバル変数が設定されるIntermissionCommandCmd_DeleteCommand_UndefinresVariable削除指定で変数が削除されるIntermissionCommandCmd_OverwriteExistingCommand_UpdatesFileIntermissionCommandCmd_WrongArgCount_ReturnsErrorIntermissionCommandCmd_NoArgs_ReturnsErrorIntermissionCommandCmd_DeleteNonExistent_NoError齟齬の報告 / Discrepancies Found
テスト結果 / Test Results
Passed: 7158, Skipped: 0, Failed: 0
次のステップ:
MoveCmdの実行テスト (Map 初期化が必要) などを追加Next step: Add execution tests for
MoveCmd(requires Map setup)Warning
The following domains were blocked by the firewall during workflow execution:
crl3.digicert.comcrl4.digicert.comdc.services.visualstudio.comocsp.digicert.coms.symcb.coms.symcd.comtscrl.ws.symantec.comtsocsp.ws.symantec.comwww.microsoft.comTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.