From 4bbf27e677f4c80ba5991e05cad9bfba26e609d8 Mon Sep 17 00:00:00 2001 From: Olivier Korach Date: Tue, 10 Dec 2024 12:39:08 +0100 Subject: [PATCH 1/3] Add JS files --- coverage-metrics/pom.xml | 1 + coverage-metrics/src/frontend/person.js | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 coverage-metrics/src/frontend/person.js diff --git a/coverage-metrics/pom.xml b/coverage-metrics/pom.xml index 0b7dd0a..3d89b85 100644 --- a/coverage-metrics/pom.xml +++ b/coverage-metrics/pom.xml @@ -11,6 +11,7 @@ UTF-8 + src/main,src/frontend diff --git a/coverage-metrics/src/frontend/person.js b/coverage-metrics/src/frontend/person.js new file mode 100644 index 0000000..f8f300f --- /dev/null +++ b/coverage-metrics/src/frontend/person.js @@ -0,0 +1,15 @@ +function Person(first, last) { + this.firstName = first; + this.lastName = last; + this.age = null; + this.eyeColor = null; + this.nationality = null; +} + +Person.prototype.fullname = function() { + return this.firstName + " " + this.lastName; +} + +Person.prototype.wishHappyBirthday = function() { + return "Happy birthday " + this.firstName; +} From 2daf2481f186f2c0bf6156bcee5e906b26f180f2 Mon Sep 17 00:00:00 2001 From: Olivier Korach Date: Tue, 10 Dec 2024 12:39:24 +0100 Subject: [PATCH 2/3] Remove useless files --- .../CoverageMetricsTest.java.utall | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 coverage-metrics/src/test/java/coverage_metrics/CoverageMetricsTest.java.utall diff --git a/coverage-metrics/src/test/java/coverage_metrics/CoverageMetricsTest.java.utall b/coverage-metrics/src/test/java/coverage_metrics/CoverageMetricsTest.java.utall deleted file mode 100644 index 3f10c95..0000000 --- a/coverage-metrics/src/test/java/coverage_metrics/CoverageMetricsTest.java.utall +++ /dev/null @@ -1,24 +0,0 @@ -package coverage_metrics; - -import static org.junit.Assert.assertEquals; -import org.junit.Test; - -public class CoverageMetricsTest { - @Test - public void test1() throws Exception { - CoverageMetrics c = new CoverageMetrics(); - assertEquals(0.5, c.f(1), 0.0); - } - - @Test - public void test2() throws Exception { - CoverageMetrics c = new CoverageMetrics(); - assertEquals(0.0, c.f(0), 0.0); - } - - @Test - public void test3() { - CoverageMetrics c = new CoverageMetrics(); - float x = c.f(5); - } -} From cb88db52ddd50eb0dd3b6103dbfa27e73a834a9f Mon Sep 17 00:00:00 2001 From: Olivier Korach Date: Tue, 17 Dec 2024 10:10:31 +0100 Subject: [PATCH 3/3] Add mixed-languages branch to the scans --- coverage-metrics/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage-metrics/build.sh b/coverage-metrics/build.sh index aa04181..1c6027d 100755 --- a/coverage-metrics/build.sh +++ b/coverage-metrics/build.sh @@ -3,7 +3,7 @@ # Load common environment . ../sqlib.sh -for branch in master partial-coverage partial-coverage-2 issue-on-test-files +for branch in master partial-coverage partial-coverage-2 issue-on-test-files mixed-languages do git checkout $branch branchOpt=""