test(hands): add 28 unit tests for Twitter Hand

Cover config defaults, 13 action types deserialization, serialization
roundtrip, credential management, and data type parsing. Also add
PartialEq derive to HandStatus for test assertions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iven
2026-04-02 01:01:37 +08:00
parent c8dc654fd4
commit dce9035584
2 changed files with 415 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ impl HandResult {
}
/// Hand execution status
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum HandStatus {
Idle,