feat: test case for repohealth/success

This commit is contained in:
zzjc1234 2024-04-09 23:20:15 +08:00
parent 52a0383ddd
commit c08d20ccd6
2 changed files with 40 additions and 0 deletions

37
expected_out.json Normal file
View File

@ -0,0 +1,37 @@
[
{
"name of check": "RepoSize",
"stdout": "Checking repository size: OK",
"exit code": 0,
"stderr": "",
"errorLog": null
},
{
"name of check": "forbiddenFile",
"stdout": "Checking forbidden files: OK",
"exit code": 0,
"stderr": "",
"errorLog": null
},
{
"name of check": "metaFile",
"stdout": "Checking the existence of meta file: OK",
"exit code": 0,
"stderr": "",
"errorLog": null
},
{
"name of check": "NonAsciiFiles",
"stdout": "Checking for non-ascii files: OK",
"exit code": 0,
"stderr": "",
"errorLog": null
},
{
"name of check": "NonAsciiMsg",
"stdout": "Checking for non-ASCII characters in commit message: OK",
"exit code": 0,
"stderr": "",
"errorLog": null
}
]

3
stdin.sh Normal file
View File

@ -0,0 +1,3 @@
#!bash
./build/healthcheck -root=./examples/repohealth/success -meta=readme.* -whitelist=.*\.md -whitelist=.git.*