From d9d3be09ed62dabc448eb08f7d2490f0ad58bbbf Mon Sep 17 00:00:00 2001 From: JohnLCaron Date: Thu, 11 Apr 2024 12:24:34 -0600 Subject: [PATCH] Move Testing class to main. --- README.md | 4 +- htmlReport/index.html | 42 +++++++++--------- .../kotlin/org/cryptobiotic/util/Testing.kt | 3 -- src/test/data/workflow/allAvailableEc.zip | Bin 374068 -> 374068 bytes .../eg/encrypt/ContestDataTest.kt | 1 - 5 files changed, 23 insertions(+), 27 deletions(-) rename src/{test => main}/kotlin/org/cryptobiotic/util/Testing.kt (70%) diff --git a/README.md b/README.md index 19dba84..3062333 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ [![License](https://img.shields.io/github/license/JohnLCaron/egk-ec)](https://github.com/JohnLCaron/egk-ec/blob/main/LICENSE.txt) ![GitHub branch checks state](https://img.shields.io/github/actions/workflow/status/JohnLCaron/egk-ec/unit-tests.yml) -[![Coverage](https://img.shields.io/badge/coverage-90.2%25%20LOC%20(6875/7623)-blue)](https://github.com/JohnLCaron/egk-ec/blob/main/htmlReport/index.html) +[![Coverage](https://img.shields.io/badge/coverage-90.2%25%20LOC%20(6890/7642)-blue)](https://github.com/JohnLCaron/egk-ec/blob/main/htmlReport/index.html) # ElectionGuard-Kotlin Elliptic Curve -_last update 04/09/2024_ +_last update 04/10/2024_ EGK Elliptic Curve (egk-ec) is an experimental implementation of [ElectionGuard](https://github.com/microsoft/electionguard), [version 2.0](https://github.com/microsoft/electionguard/releases/download/v2.0/EG_Spec_2_0.pdf), diff --git a/htmlReport/index.html b/htmlReport/index.html index 26f95d4..d7a4cea 100644 --- a/htmlReport/index.html +++ b/htmlReport/index.html @@ -44,26 +44,26 @@

Overall Coverage Summary

all classes - 83.1% + 83.2% - (473/569) + (475/571) - 87.1% + 87% - (1266/1454) + (1270/1460) - 66.5% + 66.6% - (1794/2696) + (1795/2696) @@ -71,7 +71,7 @@

Overall Coverage Summary

90.2% - (6875/7623) + (6890/7642) @@ -149,10 +149,10 @@

Coverage Breakdown

- 90% + 90.1% - (171/190) + (172/191) @@ -165,10 +165,10 @@

Coverage Breakdown

- 89.8% + 89.6% - (670/746) + (675/753) @@ -200,10 +200,10 @@

Coverage Breakdown

- 93.3% + 93.4% - (561/601) + (566/606) @@ -227,10 +227,10 @@

Coverage Breakdown

- 60.5% + 61.2% - (92/152) + (93/152) @@ -599,15 +599,15 @@

Coverage Breakdown

100% - (10/10) + (12/12) - 96.4% + 93.4% - (54/56) + (57/61) @@ -620,10 +620,10 @@

Coverage Breakdown

- 98% + 96.9% - (150/153) + (155/160) @@ -649,7 +649,7 @@

Coverage Breakdown

diff --git a/src/test/kotlin/org/cryptobiotic/util/Testing.kt b/src/main/kotlin/org/cryptobiotic/util/Testing.kt similarity index 70% rename from src/test/kotlin/org/cryptobiotic/util/Testing.kt rename to src/main/kotlin/org/cryptobiotic/util/Testing.kt index af01a96..f1b5294 100644 --- a/src/test/kotlin/org/cryptobiotic/util/Testing.kt +++ b/src/main/kotlin/org/cryptobiotic/util/Testing.kt @@ -1,8 +1,5 @@ package org.cryptobiotic.util -//val testOut = "/home/stormy/tmp/testOut/egkec" -//val testOutMixnet = "/home/stormy/tmp/testOut/egmixnet" - class Testing { companion object { val tmpdir = java.nio.file.Files.createTempDirectory("testOut").toFile().absolutePath diff --git a/src/test/data/workflow/allAvailableEc.zip b/src/test/data/workflow/allAvailableEc.zip index 30b3a0902cbbed4540d3c65d169d20cc74736909..8287fa98a1a4502db19183af7b48f425c5ceef45 100644 GIT binary patch delta 2689 zcmYjReNa?Y6zA=`m(^1I2qC0Q)R-i5HOx^kpStgifcAmDhYRzGm*z1-C(=0Ywe&6TEyTjyhrfyL)<>RJm zT(bO%soI<+|6o)d+`C(L8O{nXZI;KG#`y1;Jk+Fh{w{AbvV^HqKgfKOBIyeG zLJP$NHXeMHEJcNCU)f8tjH;c-|3#+xsw|*E__bXpD={ZpvNScf>;}m+WH$czCfTBe zFyz5oWQk9~r`*xcN<9PK-A`5zStk~3&bF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SzAnVl3wsf4(Lmo`nmSZWmyo+KcU&rys_AI<-aa}PoSOF`eMAvW1J=Ne zx);lsd!Jx^S%j<}Q3U!dhM-CSpdU#&=UJqhjx9!ddNEG*lLlTZL0y3WpqqSp!wesG zr9!kBS&F*EQe+*~Kxi3eww9q~zm|Ec95b!uXz7!2;;5urPN_i4>soJvYHvJxMbZQjbdiv{a)HI0K}SPjm( zqlUf#nd3Eh=f1Uc24rGtX#{}vwa6K4ry;DnmQH}fDma<7YcaDP5WfCSq|S5Fc+iw< zV8DqF#$HF`L3fRmCr7b1m(aD=q3*gUf^KF#f;3#z` zg&#nJjT-0{02*gSx+C9ap-rOk>_$2ra(Vmv-c4Z+r^xMYq!EzonUu8+ZLf+P%oWmv z%~v&{|Mvm_ed?Hir)jFilxDP8T2$JKwmBjP7T+|Za@axiN5O* z7wVR~kkzDtCoVK_v|y=505CXJ?^uJ4N4BEDo2|$yYen5{En{n=4$$2XzVprs^)g*; zxP;9ycmC@zOpzN?QAwjewW{+i5jogvmz&xFbh+{AO>0NMG$3BiY~VzCaF%=x{HcM6 N4lHfgz{L)l_&*;+@zMYQ diff --git a/src/test/kotlin/org/cryptobiotic/eg/encrypt/ContestDataTest.kt b/src/test/kotlin/org/cryptobiotic/eg/encrypt/ContestDataTest.kt index cebc82a..984c1cc 100644 --- a/src/test/kotlin/org/cryptobiotic/eg/encrypt/ContestDataTest.kt +++ b/src/test/kotlin/org/cryptobiotic/eg/encrypt/ContestDataTest.kt @@ -10,7 +10,6 @@ import org.cryptobiotic.eg.publish.makePublisher import org.cryptobiotic.eg.publish.readElectionRecord import org.cryptobiotic.util.ErrorMessages import org.cryptobiotic.util.Testing -import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotNull import kotlin.test.assertTrue