Files
lattigo/examples/bfv/main_test.go
Christian Mouchet 14aac7a0a4 go test-based examples testing
It is cleaner, more systematic, and produces more "ok"s when running go test ./...
2023-06-16 00:24:34 +02:00

17 lines
238 B
Go

package main
import (
"os"
"testing"
)
func TestMain(t *testing.T) {
if testing.Short() {
t.Skip("skipped in -short mode")
}
oldArgs := os.Args
defer func() { os.Args = oldArgs }()
os.Args = append(os.Args, "-short")
main()
}