test(json): change all test data to json

This commit is contained in:
Slug-Boi
2025-04-02 19:27:45 +02:00
parent bddcaa9ba2
commit 36023787b4
3 changed files with 70 additions and 10 deletions
+23 -3
View File
@@ -6,9 +6,29 @@ import (
"testing"
)
const author_data = `syntax for the test file
te|testing|TestUser|test@test.test|ex
ti|testtest|UserName2|testing@user.io;;gr1`
const author_data = `
{
"Authors": {
"testing": {
"shortname": "te",
"longname": "testing",
"username": "TestUser",
"email": "test@test.test",
"ex": true,
"groups": []
},
"testtest": {
"shortname": "ti",
"longname": "testtest",
"username": "UserName2",
"email": "testing@user.io",
"ex": false,
"groups": [
"gr1"
]
}
}
}`
var envVar = os.Getenv("author_file")