Skip to content

Commit

Permalink
diktatFix
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Oct 27, 2023
1 parent d7bbed3 commit 82b54af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ open class FixTestBase(
* @param expectedPath path to file with expected result, relative to [resourceFilePath]
* @param testPath path to file with code that will be transformed by formatter, relative to [resourceFilePath]
* @param overrideRulesConfigList optional override to [defaultRulesConfigList]
* @param overrideResourceReader [ResourceReader] to read resource content.
* @param overrideResourceReader function to override [ResourceReader] to read resource content.
* @see fixAndCompareContent
*/
protected fun fixAndCompare(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ class TestComparatorUnit(
constructor(
resourceFilePath: String,
function: (testFile: Path) -> String,
): this(resourceReader = ResourceReader.default.withPrefix(resourceFilePath), function = function)
) : this(
resourceReader = ResourceReader.default.withPrefix(resourceFilePath),
function = function,
)

/**
* @param expectedResult the name of the resource which has the expected
* content. The trailing newline, if any, **won't be read** as a separate
Expand All @@ -32,7 +36,7 @@ class TestComparatorUnit(
* `newlineAtEnd` is `true`), then the file should end with **two**
* consecutive linebreaks.
* @param testFileStr the name of the resource which has the original content.
* @param overrideResourceReader [ResourceReader] to read resource content
* @param overrideResourceReader function to override [ResourceReader] to read resource content
* @return the result of file comparison by their content.
* @see compareFilesFromFileSystem
*/
Expand Down

0 comments on commit 82b54af

Please sign in to comment.