mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-24 04:01:04 -04:00
refactor: decouple tests
This commit is contained in:
61
tests/AcpChatBackendTest.hpp
Normal file
61
tests/AcpChatBackendTest.hpp
Normal file
@@ -0,0 +1,61 @@
|
||||
// Copyright (C) 2026 Petr Mironychev
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// Additional attribution terms under GPLv3 §7(b) apply — see LICENSE
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
|
||||
namespace QodeAssist {
|
||||
|
||||
class AcpChatBackendTest final : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private slots:
|
||||
void testAcpBackendStreamsTextAndThinking();
|
||||
void testAcpBackendStartsSessionInWorkingDirectory();
|
||||
void testAcpBackendAuthenticatesWhenTheAgentAsksForIt();
|
||||
void testAcpBackendReportsPromptFailure();
|
||||
void testAcpBackendCancelInterruptsTheTurn();
|
||||
void testAcpBackendSendsAttachmentsAsEmbeddedResources();
|
||||
void testAcpBackendInlinesAttachmentsWithoutEmbeddedContextSupport();
|
||||
void testAcpBackendReportsAttachmentsItCannotLoad();
|
||||
void testAcpBackendSendsImagesWhenTheAgentAcceptsThem();
|
||||
void testAcpBackendNamesImagesTheAgentCannotAccept();
|
||||
void testAcpBackendFencesAttachmentsThatContainFences();
|
||||
void testAcpBackendTruncatesOversizedAttachments();
|
||||
void testAcpBackendRejectsAnEmptyTurn();
|
||||
void testAcpBackendSendsAttachmentsWithoutAnyMessageText();
|
||||
void testAcpBackendRaisesAgentPermissionRequests();
|
||||
void testAcpBackendSendsThePermissionAnswerToTheAgent();
|
||||
void testAcpBackendCancelsOutstandingPermissionRequests();
|
||||
void testAcpBackendSeedsAHandoverSummaryOnce();
|
||||
void testAcpBackendDropsAHandoverSummaryAfterACancelledTurn();
|
||||
void testAcpBackendDropsAHandoverSummaryWithTheConversation();
|
||||
void testAcpBackendOffersKnowledgeToHttpCapableAgents();
|
||||
void testAcpBackendWithholdsKnowledgeFromAgentsWithoutHttpMcp();
|
||||
void testAcpBackendStopsTheKnowledgeServerWithTheSession();
|
||||
void testAcpBackendSurvivesAKnowledgeServerThatWillNotStart();
|
||||
void testAcpBackendResumesAPersistedSession();
|
||||
void testAcpBackendReportsAnUnresumableSession();
|
||||
void testAcpBackendRefusesToResumeWithoutAgentSupport();
|
||||
void testAcpBackendStartsFreshAfterAFailedResume();
|
||||
void testAgentBindingKeepsTheResumeTargetBeforeTheFirstTurn();
|
||||
void testAcpBackendCarriesTheLiveSessionIntoAResume();
|
||||
void testAcpBackendEstablishesTheSessionOnlyOnce();
|
||||
void testAcpBackendMapsToolCallLifecycle();
|
||||
void testAcpBackendMapsPlanUpdates();
|
||||
void testAcpBackendReportsUsageFromThePromptResult();
|
||||
void testAcpBackendIgnoresTheCumulativeContextGauge();
|
||||
void testAcpBackendForwardsTheAgentSuggestedTitle();
|
||||
void testAcpBackendDeclinesAmbiguousPermissionOptions();
|
||||
void testAcpBackendClampsOversizedPermissionText();
|
||||
void testAcpBackendCancelsPermissionsWhenTheTurnCompletes();
|
||||
void testAcpBackendCancelsPermissionRequestsWhenTheTurnFails();
|
||||
void testAcpBackendTracksAgentSlashCommands();
|
||||
void testEarlyAgentCommandsSurviveEstablishment();
|
||||
void testAgentCommandInvocationSendsPlainPrompt();
|
||||
};
|
||||
|
||||
} // namespace QodeAssist
|
||||
Reference in New Issue
Block a user