go-scm/gitea
Claude 8d1d7fce01
test: push coverage across collect/jobrunner/gitea
collect: 83.0% -> 90.0% via error medium injection (write/list/read/ensureDir
failures), rate limiter blocking tests, HTTP mock servers for papers/market/
bitcointalk write errors, processor context cancellation, state round-trip,
and GitHub collector gh-auth-failure paths.

gitea: 89.2% -> 94.0% via paginated org/user repo servers, PR meta with
comment counting and nil dates, GetCommentBodies with nil poster, ListPullRequests
state mapping, and NewFromConfig flag override tests.

jobrunner: 86.4% -> 94.4% via journal error paths (empty baseDir, readonly dir,
path sanitisation), poller with error-returning source/handler/report, journal
integration (JSONL file verification), multiple sources, immediate cancellation,
and cycle counter tests.

handlers: 83.8% -> 89.2% via dispatch mock servers (invalid repo, EnsureLabel
failure, GetIssue not found, AssignIssue failure, AddIssueLabels error, issue
with no special labels), completion label errors, EnableAutoMerge pending checks,
PublishDraft merged state, SendFixCommand merge conflict, DismissReviews stale
review, TickParent checkbox ticking, and dual-run mode. Remaining 10.8% is in
SSH-dependent dispatch code (secureTransfer/runRemote/ticketExists) that cannot
be tested without modifying production code.

Co-Authored-By: Charon <charon@lethean.io>
2026-02-20 03:06:43 +00:00
..
client.go feat: extract SCM/forge integration packages from core/go 2026-02-16 15:25:58 +00:00
client_test.go test: add comprehensive unit tests for forge/, gitea/, git/, agentci/ 2026-02-20 00:59:46 +00:00
config.go feat: extract SCM/forge integration packages from core/go 2026-02-16 15:25:58 +00:00
config_test.go test: add comprehensive unit tests for forge/, gitea/, git/, agentci/ 2026-02-20 00:59:46 +00:00
coverage_boost_test.go test: push coverage across collect/jobrunner/gitea 2026-02-20 03:06:43 +00:00
issues.go feat: extract SCM/forge integration packages from core/go 2026-02-16 15:25:58 +00:00
issues_test.go test: add comprehensive unit tests for forge/, gitea/, git/, agentci/ 2026-02-20 00:59:46 +00:00
meta.go feat: extract SCM/forge integration packages from core/go 2026-02-16 15:25:58 +00:00
meta_test.go test: add comprehensive unit tests for forge/, gitea/, git/, agentci/ 2026-02-20 00:59:46 +00:00
repos.go feat: extract SCM/forge integration packages from core/go 2026-02-16 15:25:58 +00:00
repos_test.go test: add comprehensive unit tests for forge/, gitea/, git/, agentci/ 2026-02-20 00:59:46 +00:00
testhelper_test.go test: add comprehensive unit tests for forge/, gitea/, git/, agentci/ 2026-02-20 00:59:46 +00:00