Skip to content

Commit

Permalink
fixed the namint of function
Browse files Browse the repository at this point in the history
  • Loading branch information
Frosendroska committed Jul 23, 2024
1 parent ff73314 commit 3b70693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ class PromptGenerator(
testSamplesCode: String,
packageName: String,
): String {
val name = context.cut?.let { "${it.qualifiedName}.${method.name}" } ?: "$packageName.${method.name}"
val prompt = PromptBuilder(promptTemplates.methodPrompt)
.insertLanguage(context.promptConfiguration.desiredLanguage)
.insertName("$packageName.${method.name}")
.insertName(name)
.insertTestingPlatform(context.promptConfiguration.desiredTestingPlatform)
.insertMockingFramework(context.promptConfiguration.desiredMockingFramework)
.insertCodeUnderTest(method.text, context.classesToTest)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ class LLMProcessManager(
jUnitVersion,
language,
testBodyPrinter,
packageName
)
val testsAssembler = TestsAssemblerFactory.createTestsAssembler(
indicator,
Expand Down

0 comments on commit 3b70693

Please sign in to comment.