Daniel Sage
51f2c4d1c0
Add input completion test suite ( #4644 )
...
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2023-05-21 10:10:49 +00:00
pajlada
e1a6c24cf3
Move mocks to their own interface ( #4645 )
2023-05-20 10:54:50 +00:00
Daniel Sage
34db692895
Implement type checking/validation for filters ( #4364 )
...
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-04-09 23:35:06 +02:00
pajlada
c8e1741e47
Remove CHATTERINO_TEST definition ( #4526 )
2023-04-09 12:18:56 +02:00
nerix
bdab5e021c
Benchmark and Test LinkParser
( #4436 )
...
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-04-02 14:59:26 +00:00
pajlada
bf5a5b839c
Fix version checking ( #4329 )
...
https://github.com/Neargye/semver
* Use semver library for version downgrade checking
* Add test validating our current version is valid semver
2023-01-26 19:22:48 +01:00
nerix
904749cf62
feat: Add Live Emote Updates for BTTV ( #4147 )
...
This feature is enabled by default and can be disabled in settings with the "Enable BTTV live emotes updates" setting.
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2023-01-21 14:06:55 +00:00
pajlada
83dfb08aed
Enable LTO support for Chatterino builds ( #4258 )
...
This is disabled by default, and can be enabled by passing `-DCHATTERINO_LTO=On` to your cmake invocation.
2022-12-24 18:42:59 +01:00
nerix
39f7d8ac4c
feat: Live Emote Updates for 7TV ( #4090 )
...
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-11-13 12:07:41 +01:00
nerix
ff684fc7ed
feat: Basic PubSub Manager for Live Emote Updates ( #4087 )
...
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-10-29 14:01:01 +02:00
Daniel Sage
81caf1aae0
Rewrite & optimize LimitedQueue ( #3798 )
...
* Use circular buffer for LimitedQueue
* Reduce copying of snapshot
* Small optimizations
* Remove unneeded lock statements
* Add LimitedQueue tests
* Fix includes for limited queue benchmark
* Update CHANGELOG.md
* Use correct boost version iterators
* Use a shared_mutex to clarify reads and writes
* Update `find`/`rfind` to return the result as a boost::optional
* Use `[[nodiscard]]` where applicable
* Update comments
* Add a couple more doc comments
* Replace size with get
get is a safe (locked & checked) version of at
* Use std::vector in LimitedQueueSnapshot
* Update LimitedQueue benchmarks
* Add mutex guard to buffer accessors
We do not know whether T is an atomic type or not
so we can't safely say that we can copy the value
at a certain address of the buffer.
See https://stackoverflow.com/a/2252478
* Update doc comments, add first/last getters
* Make limit_ const
* Omit `else` if the if-case always returns
* Title case category comments
* Remove `at`
* Fix `get` comment
* Privatize/comment/lock property accessors
- `limit` is now private
- `space` is now private
- `full` has been removed
- `empty` now locks
* Remove `front` function
* Remove `back` method
* Add comment to `first`
* Add comment to `last`
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-06-18 10:44:48 +00:00
Kasia
f3f340335f
Make generic version of batcher function ( #3822 )
2022-06-17 20:52:20 +02:00
pajlada
7ccf60111d
Overhaul highlight system ( #3399 )
...
Checks have been moved into a Controller allowing for easier tests.
2022-06-05 15:40:57 +00:00
Kasia
0ad66c0af4
Optimize formatTime utility ( #3777 )
...
Adds benchmarks and unit tests for the function
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-05-29 11:54:42 +00:00
Kasia
7d0023cf73
Corrected the way we parse comma-separated "list tags" in PRIVMSGs ( #3771 )
...
tl;dr: we now split by slash only its first occurrence instead of every occurrence.
2022-05-28 09:55:48 +00:00
pajlada
ec4b1627d7
Build GoogleTest & GoogleMock as submodules ( #3760 )
2022-05-22 15:43:41 +02:00
Ian
addcbb10f9
Add guide for building chatterino2 on Windows with vcpkg ( #3634 )
2022-05-15 15:57:31 +00:00
nerix
f97780d84e
Improve Twitch PubSub connection reliability ( #3643 )
...
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-05-07 15:22:39 +00:00
Sidd
b2ed4c0843
fix: parse irc tags with consecutive escapes ( #3711 )
...
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2022-05-07 13:57:46 +00:00
pajlada
fb9c3ad42b
Add tests to Twitch User/Channel name strip functions ( #3568 )
2022-02-12 15:06:47 +01:00
Mm2PL
703f3717e2
Add custom hotkeys. ( #2340 )
...
Co-authored-by: LosFarmosCTL <80157503+LosFarmosCTL@users.noreply.github.com>
Co-authored-by: Paweł <zneix@zneix.eu>
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2021-11-21 17:46:21 +00:00
pajlada
d7fd08b1d6
Fix color @usernames sometimes not working at all ( #3170 )
...
Definitely memory fuckery involved - The comment from @lubieerror https://github.com/Chatterino/chatterino2/issues/2822#issuecomment-897252673 is finally what led me to adding tests and hopefully fixing this.
2021-08-21 10:38:38 +00:00
pajlada
d0f817a60b
Add basic benchmark ( #3038 )
...
* Add basic benchmark
* Add basic documentation for how to run and add tests/benchmarks
* Update benchmark example output
* Add changelog entry
Co-authored-by: zneix <zneix@zneix.eu>
2021-08-08 14:16:30 +02:00
Paweł
de4f6a9d51
Rate limit outgoing JOIN messages ( #3115 )
...
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Co-authored-by: Tal Neoran <talneoran@gmail.com>
2021-08-04 21:18:34 +00:00
Paweł
588ed557f0
Fixed comma appended to username completion when not at the beginning of the message ( #3060 )
...
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
2021-07-24 12:01:50 +02:00
pajlada
8ceb100177
Add tests for getEmoteSetBatches
( #3036 )
2021-07-18 10:14:01 +00:00
pajlada
0c2488505c
Use an exponential backoff when deciding how long we need to wait for reconnects ( #2892 )
...
Co-authored-by: Leon Richardt <leon.richardt@gmail.com>
2021-06-20 13:29:52 +00:00
pajlada
91b0170241
Make tests use main chatterino project objects ( #2840 )
2021-06-13 11:49:59 +00:00
fourtf
3fddafb867
optimize chatter list ( #2814 )
...
* optimize chatter list
* changelog
* Fix tests
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
2021-05-24 10:13:59 +00:00
pajlada
115d198434
Make AccessGuard use a shared_mutex instead ( #2702 )
...
This allows `accessConst` to use a shared lock instead of a unique lock
2021-05-01 15:19:41 +00:00
pajlada
2f906c5504
Add a function in NetworkCommon parseHeaderList
which parses a header list as a string into a vector of header pairs ( #2623 )
2021-04-17 11:49:19 +00:00
pajlada
208d017cc3
Add sanitizers for cmake ( #2608 )
...
These can be enabled using the `SANITIZE_{ADDRESS,MEMORY,THREAD,UNDEFINED}` cmake flags
2021-04-10 11:26:20 +00:00
pajlada
e00938dfde
Add support for CMake (buildsystem generator) ( #2468 )
...
Co-authored-by: Edgar <Edgar@AnotherFoxGuy.com>
2021-03-28 16:58:51 +02:00