This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #102 add renamed binary files and excluded file cases
- Loading branch information
Laura Cameran
committed
Jun 29, 2020
1 parent
440555f
commit fa3b325
Showing
5 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
diff --git a/solutions/_templates/hybrid-solution/mvn/login/assets/finantix-logo.png b/solutions/_templates/hybrid/mvn/login/assets/finantix-logo.png | ||
similarity index 100% | ||
rename from solutions/_templates/hybrid-solution/mvn/login/assets/finantix-logo.png | ||
rename to solutions/_templates/hybrid/mvn/login/assets/finantix-logo.png | ||
Binary files a/solutions/_templates/hybrid-solution/mvn/login/assets/finantix-logo.png and b/solutions/_templates/hybrid/mvn/login/assets/finantix-logo.png differ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
diff --git a/ui/pnpm-lock.yaml b/ui/pnpm-lock.yaml | ||
index d1549e0..06b7b7d 100644 | ||
File excluded by pattern "pnpm-lock.yaml" |
18 changes: 18 additions & 0 deletions
18
src/test/scala/ch/mibex/bitbucket/sonar/diff/GitDiffParserTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package ch.mibex.bitbucket.sonar.diff | ||
|
||
import org.scalatest.FunSuite | ||
|
||
class GitDiffParserTest extends FunSuite { | ||
private def readFile(path: String) = | ||
scala.io.Source.fromInputStream(getClass.getResourceAsStream(path)).mkString.replaceAll("\u0085", "") | ||
|
||
test("The Binary files differ case should be correctly parsed") { | ||
val response = GitDiffParser.parse(readFile("/diffs/diff-binary-files.txt")) | ||
assert(response.isRight) | ||
} | ||
|
||
test("The File excluded by pattern case should be correctly parsed") { | ||
val response = GitDiffParser.parse(readFile("/diffs/diff-excluded-file.txt")) | ||
assert(response.isRight) | ||
} | ||
} |