Skip to content

test(gemini): add test coverage for gemini package#5

Merged
cherryroots merged 7 commits intomainfrom
feature/gemini-coverage
Feb 22, 2026
Merged

test(gemini): add test coverage for gemini package#5
cherryroots merged 7 commits intomainfrom
feature/gemini-coverage

Conversation

@cherryroots
Copy link
Owner

Summary

  • Fix GEMINI_API_KEYGEMINI_TOKEN bug in SummarizeCleanText (was silently returning empty string on every call)
  • Add chat_test.go with 13 unit and integration tests covering contentToString, CreateContent, Streamer, and SummarizeCleanText
  • Add GEMINI_TOKEN to CI workflow env block so integration test runs in CI

Test Plan

  • go test ./internal/apis/gemini/... -v — all 13 tests pass
  • TestSummarizeCleanText_Integration skips cleanly when GEMINI_TOKEN is unset
  • TestSummarizeCleanText_Integration passes with real token (2s, non-empty summary)
  • go build ./... and go vet ./... clean
  • Race detector clean

🤖 Generated with Claude Code

cherryroots and others added 7 commits February 22, 2026 16:10
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cherryroots cherryroots merged commit 59c088c into main Feb 22, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant