autobrr/internal/domain
Frederick Robinson fef0da5711
feat(definitions): add expectations for test lines (#1257)
* factor out test helpers

* refactor, add tests for animebytes

* revert test refactor

* better name

* change format, migrate some examples

* migrated remaining test cases

* add comment about `Test` vs `Tests`

* refactor

* reorder expectations to match vars

* generate

* turn on strict unmarshalling, remove old `Test` from schema

* start modifying actual definitions

* done with the As

* Bs

* C, D

* E, F

* G, H, I, ... L

* M, N

* O, P

* R

* bonus error. without this, pattern/vars disagreement can panic.

* S

* T, U

* X.. Now we know our ABCs next time won't you sing with meeeee

* fix another test

* another driveby change

* be less strict parsing custom definitions

* fix(definitions): load custom definitions

---------

Co-authored-by: ze0s <ze0s@riseup.net>
2023-11-18 15:41:39 +01:00
..
testdata feat(releases): retry failed downloads (#491) 2022-10-19 21:52:31 +02:00
action.go feat(downloadclient): set downloadClientId for arr clients (#1081) 2023-09-03 15:34:55 +02:00
api.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
client.go feat(downloadclient): set downloadClientId for arr clients (#1081) 2023-09-03 15:34:55 +02:00
client_test.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
config.go feat(database): postgres set ssl mode (#1245) 2023-11-06 19:04:32 +01:00
error.go feat(filters): add support for multiple external filters (#1030) 2023-08-15 23:07:39 +02:00
event.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
feed.go feat(feeds): improve caching (#1191) 2023-10-21 17:03:52 +02:00
filter.go fix(filters): external webhook remove jitter (#1254) 2023-11-17 17:05:29 +01:00
filter_test.go fix(filters): handle empty tag_match_logic by defaulting to ANY (#910) 2023-05-06 16:11:34 +02:00
indexer.go feat(definitions): add expectations for test lines (#1257) 2023-11-18 15:41:39 +01:00
indexer_test.go feat(definitions): add expectations for test lines (#1257) 2023-11-18 15:41:39 +01:00
irc.go fix(irc): panic when creating indexer with irc (#986) 2023-06-15 18:47:47 +02:00
macros.go feat(macros): add SizeString DownloadURL and InfoURL (#1080) 2023-09-03 13:27:47 +02:00
macros_test.go feat(macros): add SizeString DownloadURL and InfoURL (#1080) 2023-09-03 13:27:47 +02:00
notification.go feat(notifications): Add Gotify (#1180) 2023-10-14 12:08:12 +02:00
release.go feat(indexers): BHD freeleech announces (#1216) 2023-10-26 22:30:28 +02:00
release_test.go feat(macros): add SizeString DownloadURL and InfoURL (#1080) 2023-09-03 13:27:47 +02:00
releasetags.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
releasetags_test.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00
user.go chore: add LICENSE GPLv2-or-later (#897) 2023-05-01 16:21:59 +02:00