aboutsummaryrefslogtreecommitdiffstats
path: root/api/api_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Add regression tests for mark-as-read and partial updatesAdam Mathes7 days1-0/+39
|
* Increase test coverage across lowest-coverage packagesclaude/improve-test-coverage-iBkwcClaude7 days1-0/+229
| | | | | | | | | | | | | | | | Major coverage improvements: - safehttp: 46.7% -> 93.3% (SafeDialer, redirect checking, SSRF protection) - api: 81.8% -> 96.4% (HandleImport 0% -> 100%, stream errors, content types) - importer: 85.3% -> 94.7% (ImportFeeds dispatcher, OPML nesting, edge cases) - cmd/neko: 77.1% -> 85.4% (purge, secure-cookies, minutes, allow-local flags) New tests added: - Security regression tests (CSRF token uniqueness, mismatch rejection, auth cookie HttpOnly, security headers, API auth requirements) - Stress tests for concurrent mixed operations and rapid state toggling - SSRF protection tests for SafeDialer hostname resolution and redirect paths https://claude.ai/code/session_01XUBh32rHpbYue1JYXSH64Q
* Add tests for CSRF exclusions, Filter includeContent, multi-feed, and routingClaude9 days1-0/+59
| | | | | | | | | | | - CSRF: test excluded paths (/api/login, /api/logout), PUT/DELETE methods - Item model: test Filter includeContent flag, ItemById returns content, multiple feed_ids filtering - API: test read_filter=all param, feed_ids comma-separated filter, full_content exclusion from stream - Routing: add v3 frontend route test https://claude.ai/code/session_019Z4VJxzY7tcAuNkPAkvry9
* Exclude full_content from stream list API responsesClaude9 days1-0/+29
| | | | | | | | | | | The /stream endpoint now skips selecting full_content and header_image from the database, reducing memory allocation and response payload size for list views. Full content remains available via /item/:id endpoint. Adds omitempty to JSON tags so empty fields are omitted from responses, and a test verifying full_content is excluded from stream responses. https://claude.ai/code/session_019Z4VJxzY7tcAuNkPAkvry9
* Backend: Fix linting issues, improve error handling, and replace magic numbersAdam Mathes10 days1-27/+27
|
* Refactor: project structure, implement dependency injection, and align v2 UI ↵Adam Mathes11 days1-53/+60
| | | | with v1
* refactor(backend): improve testability and add tests (NK-6q9nyg)Adam Mathes12 days1-0/+66
|
* wip: tui updates (buggy)Adam Mathes12 days1-3/+239
|
* Refactor backend to a clean REST APIAdam Mathes13 days1-0/+151
- Created new 'api' package with testable router and RESTful handlers - Handlers in 'api' use proper HTTP methods and status codes - Standardized JSON responses and error handling - Refactored 'web' package to delegate logic to 'api' - Maintained backward compatibility for legacy frontend routes - Simplified 'web/web_test.go' and added comprehensive 'api/api_test.go' - All tests passing with improved modularity