Moved generate split hunk use case
This commit is contained in:
parent
d76fb85373
commit
81261e42c7
@ -1,9 +1,5 @@
|
|||||||
package app.usecase
|
package app.git.diff
|
||||||
|
|
||||||
import app.git.diff.DiffResult
|
|
||||||
import app.git.diff.Line
|
|
||||||
import app.git.diff.LineType
|
|
||||||
import app.git.diff.SplitHunk
|
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import kotlin.math.abs
|
import kotlin.math.abs
|
||||||
|
|
@ -8,11 +8,10 @@ import app.git.*
|
|||||||
import app.git.diff.DiffResult
|
import app.git.diff.DiffResult
|
||||||
import app.git.diff.Hunk
|
import app.git.diff.Hunk
|
||||||
import app.preferences.AppSettings
|
import app.preferences.AppSettings
|
||||||
import app.usecase.GenerateSplitHunkFromDiffResultUseCase
|
import app.git.diff.GenerateSplitHunkFromDiffResultUseCase
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.StateFlow
|
import kotlinx.coroutines.flow.StateFlow
|
||||||
import kotlinx.coroutines.flow.collect
|
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import org.eclipse.jgit.diff.DiffEntry
|
import org.eclipse.jgit.diff.DiffEntry
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
@ -6,10 +6,9 @@ import app.extensions.filePath
|
|||||||
import app.git.*
|
import app.git.*
|
||||||
import app.git.diff.DiffResult
|
import app.git.diff.DiffResult
|
||||||
import app.preferences.AppSettings
|
import app.preferences.AppSettings
|
||||||
import app.usecase.GenerateSplitHunkFromDiffResultUseCase
|
import app.git.diff.GenerateSplitHunkFromDiffResultUseCase
|
||||||
import kotlinx.coroutines.flow.MutableStateFlow
|
import kotlinx.coroutines.flow.MutableStateFlow
|
||||||
import kotlinx.coroutines.flow.StateFlow
|
import kotlinx.coroutines.flow.StateFlow
|
||||||
import kotlinx.coroutines.flow.collect
|
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import org.eclipse.jgit.revwalk.RevCommit
|
import org.eclipse.jgit.revwalk.RevCommit
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
package app.usecase
|
package app.usecase
|
||||||
|
|
||||||
import app.git.diff.DiffResult
|
import app.git.diff.*
|
||||||
import app.git.diff.Hunk
|
|
||||||
import app.git.diff.Line
|
|
||||||
import app.git.diff.LineType
|
|
||||||
import io.mockk.mockk
|
import io.mockk.mockk
|
||||||
import org.junit.jupiter.api.Assertions.assertEquals
|
import org.junit.jupiter.api.Assertions.assertEquals
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
Loading…
Reference in New Issue
Block a user