feat: testcase for whitelisted chars

This commit is contained in:
王韵晨520370910012 2026-04-07 21:11:00 -07:00
parent ed253f3f05
commit bb9bc06fd5
GPG Key ID: F28AB6AE26FFED6F
4 changed files with 32 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
nonascii.txt text

20
conf.json Normal file
View File

@ -0,0 +1,20 @@
{
"stages": [
{
"name": "healthcheck",
"executor": {
"name": "sandbox",
"with": {
"default": {
"args": [
"/tmp/repo-health-checker",
"-root=.",
"-allowedDomainList=example.com",
"-whitelistedChars=\u6d4b"
]
}
}
}
}
]
}

10
expected.json Normal file
View File

@ -0,0 +1,10 @@
{
"failed": false,
"msgContains": [
"### Non-ASCII Characters File Check Passed"
],
"msgNotContains": [
"### Non-ASCII Characters File Check Failed"
],
"stderrContains": []
}

1
nonascii.txt Normal file
View File

@ -0,0 +1 @@
Allowed non-ASCII: 测