aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2024-11-21 11:34:57 +0100
committerÖzgür Kesim <oec@codeblau.de>2024-11-21 11:34:57 +0100
commit32cee46e39527a09504615b822cc61969c46184d (patch)
tree0a64f02293f7ea8702c908357b8ca9db95b600c9
parent6735c1a97ff64f76f1f4f91dd858f14b8194ec04 (diff)
ignore long tests when -short
-rw-r--r--nizk/vickrey_test.go21
1 files changed, 14 insertions, 7 deletions
diff --git a/nizk/vickrey_test.go b/nizk/vickrey_test.go
index 55c4dfa..089e389 100644
--- a/nizk/vickrey_test.go
+++ b/nizk/vickrey_test.go
@@ -100,8 +100,6 @@ func runVickrey(n int, bitlength int, tb testing.TB) {
for idx := range bitlength {
for i := range n {
if i == winner {
- c[i] = nil
- bj[i] = nil
Xs[i] = Id
Zs[i] = Id
continue
@@ -189,12 +187,21 @@ func runVickrey(n int, bitlength int, tb testing.TB) {
}
}
-func TestAuction4on6bit(t *testing.T) { runSeal(4, 6, t) }
-
-// func TestAuction100on24bit(t *testing.T) { runSeal(100, 24, t) }
+func TestSeal4on6bit(t *testing.T) { runSeal(4, 6, t) }
+func TestSeal100on24bit(t *testing.T) {
+ if testing.Short() {
+ t.Skip("skipping vickrey 100, 16")
+ }
+ runSeal(100, 24, t)
+}
-func TestVickrey4on6bit(t *testing.T) { runVickrey(4, 6, t) }
-func TestVickrey100on16bit(t *testing.T) { runVickrey(100, 16, t) }
+func TestVickrey4on6bit(t *testing.T) { runVickrey(4, 6, t) }
+func TestVickrey100on16bit(t *testing.T) {
+ if testing.Short() {
+ t.Skip("skipping vickrey 100, 16")
+ }
+ runVickrey(100, 16, t)
+}
func BenchmarkVickrey100on24bit(b *testing.B) {
for range b.N {
runVickrey(100, 24, b)