feat: add the ability to unit test some aspects of SplitInput (#5179)

This commit is contained in:
pajlada
2024-02-17 13:26:54 +01:00
committed by GitHub
parent 4b48774cbb
commit 32d269dffc
8 changed files with 142 additions and 4 deletions
+5
View File
@@ -525,6 +525,11 @@ const IndirectChannel &TwitchIrcServer::getWatchingChannel() const
return this->watchingChannel;
}
QString TwitchIrcServer::getLastUserThatWhisperedMe() const
{
return this->lastUserThatWhisperedMe.get();
}
void TwitchIrcServer::reloadBTTVGlobalEmotes()
{
getIApp()->getBttvEmotes()->loadEmotes();
+4
View File
@@ -29,6 +29,8 @@ public:
virtual const IndirectChannel &getWatchingChannel() const = 0;
virtual QString getLastUserThatWhisperedMe() const = 0;
// Update this interface with TwitchIrcServer methods as needed
};
@@ -81,6 +83,8 @@ public:
const IndirectChannel &getWatchingChannel() const override;
QString getLastUserThatWhisperedMe() const override;
protected:
void initializeConnection(IrcConnection *connection,
ConnectionType type) override;