devhatt / octopost-backend

Backend da aplicação octopost
https://devhatt.github.io/octopost-backend/
9 stars 24 forks source link

[POC] Twitter #153

Closed k1nha closed 3 months ago

k1nha commented 4 months ago

Implementação do oauth do twitter closes #158

github-actions[bot] commented 3 months ago

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 85.1% (🎯 85%) 280 / 329
🟢 Statements 85.19% (🎯 85%) 282 / 331
🟢 Functions 85.18% (🎯 85%) 92 / 108
🔴 Branches 79.62% (🎯 85%) 43 / 54
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/features/account/repositories/account-repository/account-repository.ts 80% 100% 80% 80% 59-64
src/features/account/repositories/token-repository/token-repository.ts 100% 100% 100% 100%
src/features/account/services/get-user-accounts-service.ts 85.71% 50% 100% 85.71% 31
src/features/auth/repositories/auth-repository/auth-repository.ts 100% 100% 100% 100%
src/features/auth/services/auth-login-service.ts 90.9% 66.66% 100% 90.9% 35
src/features/auth/services/auth-token-validation-service.ts 100% 100% 100% 100%
src/features/twitter/controllers/twitter-controller.ts 69.23% 50% 100% 69.23% 29, 31, 33, 35
src/features/twitter/helpers/generate-auth-url.ts 0% 100% 0% 0% 8-9, 11-18, 20
src/features/twitter/services/authorize-twitter-service.ts 85.71% 50% 100% 85.71% 29, 42-47
src/features/twitter/services/twitter-service.ts 100% 50% 100% 100%
src/middlewares/auth/auth-jwt.ts 100% 100% 100% 100%
src/shared/infra/http/axios-http.ts 0% 0% 0% 0% 10-15, 13, 25, 27, 31, 33
src/shared/infra/jwt/jwt.ts 100% 100% 100% 100%
src/shared/infra/logger/logger.ts 0% 100% 0% 0% 9-23, 27, 31, 35
src/shared/protocols/http-client.ts 100% 100% 100% 100%
src/shared/test-helpers/mocks/http-adapter.mock.ts 100% 100% 100% 100%
src/shared/test-helpers/mocks/logger.mock.ts 100% 100% 100% 100%
src/shared/test-helpers/mocks/repositories/account-repository.mock.ts 100% 100% 100% 100%
src/shared/test-helpers/mocks/repositories/token-repository.mock.ts 100% 100% 100% 100%
Generated in workflow #289