test-patterns
Installation
SKILL.md
Test Patterns for Rust Self-Learning Memory
Unified testing patterns covering unit testing quality, episodic memory domain tests, and async/tokio patterns.
Naming Convention
test_<function>_<scenario>_<expected_behavior> (e.g., test_withdraw_valid_amount_decreases_balance)
AAA Pattern
#[tokio::test]
async fn test_save_episode() -> anyhow::Result<()> {
let memory = create_test_memory().await; // Arrange
memory.save_episode(&episode).await?; // Act
assert_eq!(retrieved.task_description, "Test"); // Assert
Ok(())
}