From c4faca50e0c8ffd54f5a125aff653c572690bed9 Mon Sep 17 00:00:00 2001 From: iProdigy Date: Sat, 19 Oct 2024 04:06:20 -0700 Subject: [PATCH] chore: update mocks --- mocks/include/mocks/TwitchIrcServer.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mocks/include/mocks/TwitchIrcServer.hpp b/mocks/include/mocks/TwitchIrcServer.hpp index d218192b3..8f8de58a8 100644 --- a/mocks/include/mocks/TwitchIrcServer.hpp +++ b/mocks/include/mocks/TwitchIrcServer.hpp @@ -26,6 +26,7 @@ public: , mentionsChannel(std::shared_ptr(new MockChannel("forsen3"))) , liveChannel(std::shared_ptr(new MockChannel("forsen"))) , automodChannel(std::shared_ptr(new MockChannel("forsen2"))) + , channelNamesById_(1) { } @@ -49,6 +50,14 @@ public: return {}; } + std::optional getOrPopulateChannelCache( + const QString &channelId) override + { + assert(false && + "unimplemented getOrPopulateChannelCache in mock irc server"); + return {}; + } + void addFakeMessage(const QString &data) override { } @@ -148,6 +157,7 @@ public: ChannelPtr mentionsChannel; ChannelPtr liveChannel; ChannelPtr automodChannel; + UniqueAccess> channelNamesById_; QString lastUserThatWhisperedMe{"forsen"}; std::unordered_map> mockChannels;