forked from hosseinabdinf/SPADE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_case.go
More file actions
60 lines (54 loc) · 761 Bytes
/
test_case.go
File metadata and controls
60 lines (54 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package SPADE
import "fmt"
type TestCase int
const (
S TestCase = iota
M
L
)
type TestContext struct {
// tc test case
tc TestCase
// m number of users
m int
// n maximum plaintext vector size
n int
// l maximum value for data range
l int64
// query value for decryption key generation
v int
}
var TestVector = []TestContext{
{
tc: S,
m: 10,
n: 1000,
l: 10,
v: 1,
},
{
tc: M,
m: 100,
n: 10000,
l: 10,
v: 1,
},
{
tc: L,
m: 1000,
n: 50000,
l: 10,
v: 1,
},
{
tc: L,
m: 10000,
n: 100000,
l: 10,
v: 1,
},
}
func TestString(name string, t TestContext) string {
return fmt.Sprintf("=== %s: NumberOfUsers=%d, DataSize=%d, MaxDataValue=%d, QueryValue=%d",
name, t.m, t.n, t.l, t.v)
}