Skip to content

Commit

Permalink
fix: fix content error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 27, 2023
1 parent eb0d128 commit c31cd93
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class MethodTestCodeBuilder(private val context: JobContext) : TestCodeBuilder {
function.FunctionCalls.map {
if (it.NodeName == underTestFile.NodeName) {
val canonicalName = it.Package + "." + it.NodeName + ":" + it.FunctionName
val originalContent = underTestFunctionMap[canonicalName]
val originalContent = underTestFunctionMap[canonicalName] ?: return@map

if (originalContent != null) {
if (originalContent.isNotBlank() && function.Content.isNotBlank()) {
val testIns = BasicTestIns(
lang = context.project.language,
underTestCode = originalContent,
Expand Down

0 comments on commit c31cd93

Please sign in to comment.