1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-12 22:57:59 +01:00
ntfy/util
Michael Manganiello ebd4367dda Fix false positive in ContainsAll function
As the `ContainsAll` is working with a match counter, it could return
a false positive when the `haystack` slice contains duplicate elements.

This can be checked with the included testing scenario, with
`haystack = [1, 1]` and `needles = [1, 2]`. Iterating over the haystack
to check for items to be present in needles will increase the match
counter to 2, even if `2` is not present in the first slice.
2023-05-12 09:51:47 -03:00
..
embedfs Webhooks (#55), more tests (#35) and python examples (#50) 2021-12-15 16:12:40 -05:00
batching_queue.go Fix race condition making it possible for batches to be >batchSize 2022-11-16 11:16:07 -05:00
batching_queue_test.go Fix race condition making it possible for batches to be >batchSize 2022-11-16 11:16:07 -05:00
content_type_writer.go Better mime type probing 2022-01-10 13:38:51 -05:00
content_type_writer_test.go Fix randomly failing test 2022-05-07 19:42:36 -04:00
embedfs.go Reformatting, make update 2022-09-27 12:37:02 -04:00
embedfs_test.go Webhooks (#55), more tests (#35) and python examples (#50) 2021-12-15 16:12:40 -05:00
gzip_handler.go Replace interface{} 2022-10-01 16:31:48 -04:00
gzip_handler_test.go Gzip static responses 2022-03-10 21:55:56 -05:00
limit.go Rate limiting refactor, race fixes, more tests 2023-01-27 11:33:51 -05:00
limit_test.go Rate limiting refactor, race fixes, more tests 2023-01-27 11:33:51 -05:00
lookup_cache.go Code review (round 1) 2023-02-08 22:57:10 -05:00
lookup_cache_test.go Fix a bunch of FIXMEs 2023-01-18 15:50:06 -05:00
peek.go Docs and Matrix tests 2022-06-16 11:40:56 -04:00
peek_test.go Attachment behavior fix for Firefox 2022-04-03 12:39:52 -04:00
time.go Add visitor_seen to the log context 2023-03-03 13:56:48 -05:00
time_test.go Enhance some duration flags 2023-02-27 14:34:05 -05:00
util.go Fix false positive in ContainsAll function 2023-05-12 09:51:47 -03:00
util_test.go Fix false positive in ContainsAll function 2023-05-12 09:51:47 -03:00