← スキル一覧に戻る

maverick-rust-testing
by get2knowio
Highway to the agent zone!
⭐ 0🍴 0📅 2026年1月25日
SKILL.md
name: maverick-rust-testing description: Rust testing patterns (unit, integration, property-based) version: 1.0.0 triggers:
- "#[test]"
- "#[cfg(test)]"
- assert_eq!
- assert!
- "#[should_panic]"
- proptest
- quickcheck
Rust Testing Skill
Unit Tests
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_add() {
assert_eq!(add(2, 2), 4);
}
#[test]
#[should_panic(expected = "overflow")]
fn test_overflow() {
add(i32::MAX, 1);
}
}
Integration Tests
Place in tests/ directory (separate crate).
Property-Based Testing
use proptest::prelude::*;
proptest! {
#[test]
fn test_reverse_involutive(ref vec in prop::collection::vec(any::<i32>(), 0..100)) {
let reversed_twice: Vec<_> = vec.iter().rev().rev().cloned().collect();
assert_eq!(vec, &reversed_twice);
}
}
Review Severity
- CRITICAL: No tests for new code
- MAJOR: Missing edge case tests
- MINOR: Missing documentation on tests
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です