fix: Remove isUserSource from tests

This commit is contained in:
Petr Mironychev
2026-06-28 17:37:11 +02:00
parent ccc2ec2e80
commit dc3100f054
12 changed files with 224 additions and 88 deletions

View File

@@ -98,7 +98,7 @@ TEST(AgentLoaderTest, UserAgentCollidingWithBundledNameIsRejected)
const AgentConfig *cfg = findConfig(result, QStringLiteral("A"));
ASSERT_NE(cfg, nullptr);
EXPECT_EQ(cfg->description, QStringLiteral("base"));
EXPECT_FALSE(cfg->isUserSource());
EXPECT_TRUE(cfg->sourcePath.startsWith(bundled.path()));
}
TEST(AgentLoaderTest, HiddenIsNotInherited)

View File

@@ -370,7 +370,7 @@ TEST_F(DocumentContextReaderTest, testPrepareContext)
(QodeAssist::Templates::ContextData{
.prefix = "Line 0\nLine 1\nLin",
.suffix = "e 2\nLine 3\nLine 4",
.fileContext = "\n Language: (MIME: text/python) filepath: /path/to/file()\n\n"
.fileContext = "\nFile information:\nMIME type: text/python\nFile path: /path/to/file\n\n"
"Recent Project Changes Context:\n "}));
EXPECT_EQ(
@@ -378,7 +378,7 @@ TEST_F(DocumentContextReaderTest, testPrepareContext)
(QodeAssist::Templates::ContextData{
.prefix = "Line 1\nLin",
.suffix = "e 2\nLine 3",
.fileContext = "\n Language: (MIME: text/python) filepath: /path/to/file()\n\n"
.fileContext = "\nFile information:\nMIME type: text/python\nFile path: /path/to/file\n\n"
"Recent Project Changes Context:\n "}));
EXPECT_EQ(
@@ -386,7 +386,7 @@ TEST_F(DocumentContextReaderTest, testPrepareContext)
(QodeAssist::Templates::ContextData{
.prefix = "Line 0\nLine 1\nLin",
.suffix = "e 2\nLine 3\nLine 4",
.fileContext = "\n Language: (MIME: text/python) filepath: /path/to/file()\n\n"
.fileContext = "\nFile information:\nMIME type: text/python\nFile path: /path/to/file\n\n"
"Recent Project Changes Context:\n "}));
}