スキル一覧に戻る
pevans

write-unit-tests

by pevans

A small program for the emulation of retro computers

12🍴 2📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: Write unit tests description: Enable an agent to write unit tests

Write unit tests

Best practices

  • Unit tests should go into tests named for the functions being tested.
    • If you have a function Foo, you should have a test function named TestFoo.
    • Methods with receivers should include the name of the receiver's type. A method like func (f *Foo) Bar() {...} should have a test named TestFooBar.
  • Tests should only test the behavior of the function. Don't exhaustively test every possible input.
  • Each behavior you test should have a test case. If you have more than two test cases, use table-driven tests.

スコア

総合スコア

65/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です