MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / tests

Method tests

src/plugins/chat/copilot.cpp:172–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172void Copilot::tests()
173{
174 QString prompt = "code: ```%1```\n\n"
175 "You need to automatically determine the programming language of the provided code, and write a set of unit test code for it using a popular current unit testing framework. Please ensure that the tests cover the main functionalities and edge cases, and include necessary comments.";
176 if (locale == Zh)
177 prompt.append("\nPlease answer by Chineses");
178 ChatManager::instance()->requestAsync(prompt.arg(selectedText()));
179 switchToChatPage();
180}
181
182void Copilot::commits()
183{

Callers

nothing calls this directly

Calls 2

requestAsyncMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected