Skip to content

chore: coverage 38.6% → 44.7%, remove license badge#49

Merged
devitway merged 1 commit intomainfrom
chore/coverage-40
Apr 5, 2026
Merged

chore: coverage 38.6% → 44.7%, remove license badge#49
devitway merged 1 commit intomainfrom
chore/coverage-40

Conversation

@devitway
Copy link
Copy Markdown
Contributor

@devitway devitway commented Apr 5, 2026

Summary

  • Remove BSL license badge from README.md and README.en.md
  • Add 32 integration tests for admin API (admin_test.go)
  • All 12 admin handler functions covered
  • Auth flows tested: ADMIN_TOKEN, JWT admin, forbidden, no auth
  • Business rules tested: general protection, name validation, duplicate prevention

Metrics

Metric Before After
Tests 233 266
Coverage 38.6% 44.7%
API coverage 22.3% 35.3%

Test plan

  • All 266 tests pass locally
  • go vet clean
  • Pre-commit and pre-push hooks pass

- Remove BSL license badge from README.md and README.en.md
- Add 32 integration tests for admin API (admin_test.go)
- Cover all 12 admin handler functions: registerOrg, registerBot,
  createChannel, deleteChannel, renameChannel, renameBot,
  resetPassword, adminSetRole, getOrgStore, requireAdmin
- Test auth flows: ADMIN_TOKEN, JWT admin, forbidden, no auth
- Test business rules: #general protection, name validation,
  duplicate prevention, field validation
- Total: 233 → 266 tests, coverage 38.6% → 44.7%
@devitway devitway merged commit 05953a6 into main Apr 5, 2026
7 checks passed
@devitway devitway deleted the chore/coverage-40 branch April 5, 2026 19:03
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