Skip to content

Commit

Permalink
test: Increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jmongard committed Mar 8, 2024
1 parent eda45ff commit 2086dd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package git.semver.plugin.changelog
import git.semver.plugin.changelog.ChangeLogTexts.Companion.BREAKING_CHANGE
import java.util.*

open class ChangeLogBuilder(
class ChangeLogBuilder(
val groupKey: String? = null,
private val commitInfos: List<ChangeLogFormatter.CommitInfo>,
private val context: ChangeLogFormatter.Context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,14 @@ class ChangeLogFormatTest {
val changeLog = listOf(
Commit("fix: B", "1", emptySequence()),
Commit("fix: A", "2", emptySequence()),
Commit("ignore: B", "5", emptySequence()),
Commit("fix: B", "3", emptySequence()),
Commit("fix: A", "4", emptySequence()),
)
val c = ChangeLogTexts(mutableMapOf("fix" to "FIX", "#" to "CHANGELOG"))
val c = ChangeLogTexts(mutableMapOf(
"fix" to "FIX",
"ignore" to "",
"#" to "CHANGELOG"))
c.groupByText = false
c.sortByText = false

Expand Down

0 comments on commit 2086dd6

Please sign in to comment.