Skip to content

[unit-tests] ユニットテスト補完: IntermissionCommandCmd#862

Merged
7474 merged 1 commit intomasterfrom
unit-tests/intermission-command-cmd-13302d797895a0c0
Mar 14, 2026
Merged

[unit-tests] ユニットテスト補完: IntermissionCommandCmd#862
7474 merged 1 commit intomasterfrom
unit-tests/intermission-command-cmd-13302d797895a0c0

Conversation

@github-actions
Copy link
Contributor

🧪 ユニットテスト補完 レポート (2026-03-14)

追加したテスト / Tests Added

  • IntermissionCommandCmd: 6件追加 (OptionAndEventCmdTests.cs)

合計: 6件追加

カバレッジサマリー / Coverage Summary

  • テスト済み (既存): 全コマンドの大半 (7152件)
  • 新規テスト追加: IntermissionCommandCmd (6件)
  • 未テスト (残り): MoveCmd (実行テストなし), QuickLoadCmd, CallIntermissionCommandCmd, MakePilotListCmd, MakeUnitListCmd, LoadCmd (いずれも GUI 依存が強く単体テストが困難)

テスト詳細 / Test Details

ヘルプドキュメント (IntermissionCommandコマンド.md) に基づいてテストを作成:

テストメソッド 検証内容
IntermissionCommandCmd_RegistersCommand_SetsGlobalVariable IntermissionCommand(name) = file のグローバル変数が設定される
IntermissionCommandCmd_DeleteCommand_UndefinresVariable 削除 指定で変数が削除される
IntermissionCommandCmd_OverwriteExistingCommand_UpdatesFile 同名コマンドへの再実行でファイル名が更新される
IntermissionCommandCmd_WrongArgCount_ReturnsError 引数が2つの場合 -1 が返る
IntermissionCommandCmd_NoArgs_ReturnsError 引数なしの場合 -1 が返る
IntermissionCommandCmd_DeleteNonExistent_NoError 未定義コマンドの削除がエラーなく終了する

齟齬の報告 / Discrepancies Found

  • なし / None

テスト結果 / Test Results

Passed: 7158, Skipped: 0, Failed: 0

次のステップ: MoveCmd の実行テスト (Map 初期化が必要) などを追加
Next step: Add execution tests for MoveCmd (requires Map setup)

Generated by ユニットテスト補完エージェント / Unit Test Completion Agent ·

Warning

⚠️ Firewall blocked 9 domains

The following domains were blocked by the firewall during workflow execution:

  • crl3.digicert.com
  • crl4.digicert.com
  • dc.services.visualstudio.com
  • ocsp.digicert.com
  • s.symcb.com
  • s.symcd.com
  • tscrl.ws.symantec.com
  • tsocsp.ws.symantec.com
  • www.microsoft.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "crl3.digicert.com"
    - "crl4.digicert.com"
    - "dc.services.visualstudio.com"
    - "ocsp.digicert.com"
    - "s.symcb.com"
    - "s.symcd.com"
    - "tscrl.ws.symantec.com"
    - "tsocsp.ws.symantec.com"
    - "www.microsoft.com"

See Network Configuration for more information.

ヘルプドキュメントの記載に基づき、IntermissionCommandCmd の
ユニットテスト 6 件を OptionAndEventCmdTests.cs に追加。

テスト内容:
- コマンド登録: IntermissionCommand(name) = file のグローバル変数が設定される
- コマンド削除: 「削除」指定で変数が削除される
- コマンド上書き: 同名コマンドに対して再実行するとファイル名が更新される
- 引数不足エラー: ArgNum != 3 の場合に -1 が返る
- 引数なしエラー
- 未定義コマンドの削除: エラーなく正常終了する

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@7474 7474 merged commit a6ca827 into master Mar 14, 2026
1 check passed
@7474 7474 deleted the unit-tests/intermission-command-cmd-13302d797895a0c0 branch March 14, 2026 14:45
@7474 7474 deployed to SRC#DataViewer dev March 14, 2026 14:45 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant