Skip to content

test(integration): add turn_index Some(N) serialization test #143

@HayWolf

Description

@HayWolf

来源

PR #136 review 评估后续跟进项

问题

frontend_integration.rs 中 ThreadStreamEvent 序列化测试仅覆盖 turn_index: None 的情况,未测试 Some(N) 的序列化路径。虽然 serde 对 Option 的 Some/None 变体使用相同的序列化逻辑,风险较低,但补上可提升覆盖完整性。

建议

添加测试用例:构造 MessageCompleted 和 ReasoningUpdated 的 turn_index: Some(0) 和 Some(5) 变体,断言序列化 JSON 正确包含 turn_index 字段。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions