indiana91/devstandup

Add Unit Tests for Git Analyzer

オープン

#4 opened on 2025/10/02

 (1 件のコメント) (0 件のリアクション) (0 人の担当者) (0 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (1 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Write unit tests for the internal/git/analyzer.go file to ensure commit analysis works correctly.

Tasks:

  • Create analyzer_test.go file
  • Write test for parsing commit messages
  • Write test for calculating statistics (additions, deletions)
  • Write test for filtering commits by date range
  • Write test for filtering commits by author
  • Achieve at least 80% code coverage

Acceptance Criteria:

  • All tests pass with go test ./internal/git/...
  • Code coverage is at least 80%
  • Tests include edge cases (empty repos, no commits, etc.)

Resources:

コントリビューターガイド