| 1 |
// +build ignore |
| 2 |
// The previous line (and this one up to the warning below) is removed by the |
| 3 |
// template generator. |
| 4 |
|
| 5 |
// Code generated from ./templates/field_test.go.tmpl. DO NOT EDIT. |
| 6 |
|
| 7 |
package arith |
| 8 |
|
| 9 |
import ( |
| 10 |
"testing" |
| 11 |
|
| 12 |
"github.com/cloudflare/circl/vdaf/prio3/arith/{{.Name | ToLower}}" |
| 13 |
) |
| 14 |
|
| 15 |
func Test{{.Name}}(t *testing.T) { |
| 16 |
t.Run("Fp", testFp[{{.Name | ToLower}}.Fp]) |
| 17 |
t.Run("Vec", testVec[{{.Name | ToLower}}.Vec]) |
| 18 |
t.Run("Poly",testPoly[{{.Name | ToLower}}.Poly, {{.Name | ToLower}}.Vec]) |
| 19 |
} |
| 20 |
|
| 21 |
func Benchmark{{.Name}}(b *testing.B) { |
| 22 |
b.Run("Fp", benchmarkFp[{{.Name | ToLower}}.Fp]) |
| 23 |
b.Run("Vec", benchmarkVec[{{.Name | ToLower}}.Vec]) |
| 24 |
b.Run("Poly", benchmarkPoly[{{.Name | ToLower}}.Poly, {{.Name | ToLower}}.Vec]) |
| 25 |
} |