mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 06:51:17 +07:00
[git] cleanup
This commit is contained in:
@@ -85,14 +85,7 @@ class GitLogParserTest : GitPlatformTest() {
|
||||
private fun doTestAllRecords(nameStatusOption: NameStatus, newRefsFormat: Boolean = false) {
|
||||
val expectedRecords = generateRecords(newRefsFormat)
|
||||
|
||||
val option: NameStatus
|
||||
when (nameStatusOption) {
|
||||
NONE -> option = NONE
|
||||
STATUS -> option = STATUS
|
||||
else -> throw AssertionError()
|
||||
}
|
||||
|
||||
val parser = GitLogParser(myProject, option, *GIT_LOG_OPTIONS)
|
||||
val parser = GitLogParser(myProject, nameStatusOption, *GIT_LOG_OPTIONS)
|
||||
|
||||
val output = expectedRecords.joinToString("\n") { it.prepareOutputLine(nameStatusOption) }
|
||||
val actualRecords = parser.parse(output)
|
||||
|
||||
Reference in New Issue
Block a user