fsylvain
6a2ca07b66
refac: repository updates, image attachment and deletes report the domain not-found error for an unknown id, the same for articles, users and images, and the test fakes stop returning GORM errors
2026-09-23 22:09:06 +02:00
fsylvain
4278d96882
refac: article title rules are the same in the API request and the domain; an invalid title returns 400 instead of 500
2026-09-23 20:04:09 +02:00
fsylvain
8460a078e3
refac: missing user or article is reported with a domain not-found error instead of a raw GORM error, and the API answers 404 for it
2026-09-23 18:55:05 +02:00
fsylvain
7c57173497
feat: characterized the existing use cases as a baseline; every repo fake behaves like the real ones and can be told to fail, every use case is covered; gremlins runs clean on useCases
2026-09-23 18:21:46 +02:00
Floriansylvain
9c80cb9885
feat: unit testing mocked repos / domain
2025-12-22 02:49:57 +01:00
Florian Sylvain
554fdc1989
clean: Article to Post in domain and related use cases
...
Renamed the 'Article' domain to 'Post' in order to better reflect the purpose and utility of the object. The change involved renaming all related use cases, classes, and other references from 'Article' to 'Post' and updating all functions and data types to work with Posts instead of Articles.
2023-09-06 01:56:27 +02:00
Florian Sylvain
64ecbc6995
clean: removed ignored err var declaration
2023-08-13 03:21:47 +02:00
Florian Sylvain
e575062209
clean: removed too deeply nested tests
2023-08-12 20:52:32 +02:00
Florian Sylvain
542bcded3e
fix: panic on test.db rm err
2023-08-12 02:39:42 +02:00
Florian Sylvain
46daadb8e4
feat: tests (article)
2023-08-12 02:33:40 +02:00