chore: update mocks

This commit is contained in:
iProdigy 2024-10-19 04:06:20 -07:00
parent 7d0c473828
commit c4faca50e0

View file

@ -26,6 +26,7 @@ public:
, mentionsChannel(std::shared_ptr<Channel>(new MockChannel("forsen3")))
, liveChannel(std::shared_ptr<Channel>(new MockChannel("forsen")))
, automodChannel(std::shared_ptr<Channel>(new MockChannel("forsen2")))
, channelNamesById_(1)
{
}
@ -49,6 +50,14 @@ public:
return {};
}
std::optional<QString> 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<cache::lru_cache<QString, QString>> channelNamesById_;
QString lastUserThatWhisperedMe{"forsen"};
std::unordered_map<QString, std::weak_ptr<Channel>> mockChannels;