aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-08-03 16:25:51 +0200
committerJakob Unterwurzacher2025-08-03 21:25:24 +0200
commit08d26a70dd6bc268c18e9f8511aa6286ecb29403 (patch)
tree493698997e481018cf7b06dc362f266d154bf749
parent8a1d941cde827ef05634f9c476c1a3cd921e42af (diff)
tests: matrix: make "matrix" local
-rw-r--r--tests/matrix/main_test.go44
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/matrix/main_test.go b/tests/matrix/main_test.go
index fb2b273..76df452 100644
--- a/tests/matrix/main_test.go
+++ b/tests/matrix/main_test.go
@@ -40,30 +40,30 @@ func (tc *testcaseMatrix) isSet(extraArg string) bool {
return false
}
-var matrix = []testcaseMatrix{
- // Normal
- {false, "auto", false, false, nil},
- {false, "true", false, false, nil},
- {false, "false", false, false, nil},
- // Plaintextnames
- {true, "true", false, false, nil},
- {true, "false", false, false, nil},
- // AES-SIV (does not use openssl, no need to test permutations)
- {false, "auto", true, false, nil},
- {true, "auto", true, false, nil},
- // Raw64
- {false, "auto", false, true, nil},
- // -serialize_reads
- {false, "auto", false, false, []string{"-serialize_reads"}},
- {false, "auto", false, false, []string{"-sharedstorage"}},
- {false, "auto", false, false, []string{"-deterministic-names"}},
- // Test xchacha with and without openssl
- {false, "true", false, true, []string{"-xchacha"}},
- {false, "false", false, true, []string{"-xchacha"}},
-}
-
// This is the entry point for the tests
func TestMain(m *testing.M) {
+ var matrix = []testcaseMatrix{
+ // Normal
+ {false, "auto", false, false, nil},
+ {false, "true", false, false, nil},
+ {false, "false", false, false, nil},
+ // Plaintextnames
+ {true, "true", false, false, nil},
+ {true, "false", false, false, nil},
+ // AES-SIV (does not use openssl, no need to test permutations)
+ {false, "auto", true, false, nil},
+ {true, "auto", true, false, nil},
+ // Raw64
+ {false, "auto", false, true, nil},
+ // -serialize_reads
+ {false, "auto", false, false, []string{"-serialize_reads"}},
+ {false, "auto", false, false, []string{"-sharedstorage"}},
+ {false, "auto", false, false, []string{"-deterministic-names"}},
+ // Test xchacha with and without openssl
+ {false, "true", false, true, []string{"-xchacha"}},
+ {false, "false", false, true, []string{"-xchacha"}},
+ }
+
// Make "testing.Verbose()" return the correct value
flag.Parse()
var i int