Skip to content

Commit

Permalink
feat(testing): add flow.collect to TestCodeGenTask
Browse files Browse the repository at this point in the history
Add `flow.collect` to `TestCodeGenTask.kt` to collect the emitted values from the flow. This ensures that all values are processed and the test cases are generated correctly.
  • Loading branch information
phodal committed Jan 16, 2024
1 parent abd390c commit 2bb353e
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -24,6 +24,7 @@ import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import kotlinx.coroutines.InternalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.runBlocking

data class TestGenPromptContext(
Expand Down

0 comments on commit 2bb353e

Please sign in to comment.