mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-27 09:38:38 +03:00
ebd4367dda
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. |
||
---|---|---|
.. | ||
embedfs | ||
batching_queue_test.go | ||
batching_queue.go | ||
content_type_writer_test.go | ||
content_type_writer.go | ||
embedfs_test.go | ||
embedfs.go | ||
gzip_handler_test.go | ||
gzip_handler.go | ||
limit_test.go | ||
limit.go | ||
lookup_cache_test.go | ||
lookup_cache.go | ||
peek_test.go | ||
peek.go | ||
time_test.go | ||
time.go | ||
util_test.go | ||
util.go |