add: parsing test

This commit is contained in:
2025-12-17 05:59:09 -06:00
parent d827e21ed5
commit 653e4b6e47

View File

@@ -1,30 +1,78 @@
{ {
"parsing": { "parsing": {
"working": [ "basic": [
{ {
"title": "normal", "title": "normal",
"args": "1.1.1.1", "args": "1.1.1.1",
"exit": 0 "exit": 0
}, }
],
"dns": [
{ {
"title": "dns", "title": "normal",
"args": "google.com", "args": "google.com",
"exit": 0 "exit": 0
}, }
],
"ttl": [
{ {
"title": "ttl", "title": "normal",
"args": "1.1.1.1 --ttl 128", "args": "1.1.1.1 --ttl 128",
"exit": 0 "exit": 0
}, },
{ {
"title": "preload", "title": "too high",
"args": "1.1.1.1 --ttl 256",
"exit": 1
},
{
"title": "too low",
"args": "1.1.1.1 --ttl 0",
"exit": 1
},
{
"title": "negative",
"args": "1.1.1.1 --ttl -1",
"exit": 1
}
],
"preload": [
{
"title": "normal",
"args": "1.1.1.1 -p 1", "args": "1.1.1.1 -p 1",
"exit": 0 "exit": 0
}, },
{ {
"title": "payload size", "title": "negative",
"args": "1.1.1.1 -p -1",
"exit": 1
},
{
"title": "highest",
"args": "1.1.1.1 -p 2147483647",
"exit": 0
},
{
"title": "too high",
"args": "1.1.1.1 -p 2147483648",
"exit": 1
}
],
"payload_size": [
{
"title": "normal",
"args": "1.1.1.1 -s 1", "args": "1.1.1.1 -s 1",
"exit": 0 "exit": 0
},
{
"title": "negative",
"args": "1.1.1.1 -s -1",
"exit": 1
},
{
"title": "too high",
"args": "1.1.1.1 -s 2147483648",
"exit": 1
} }
] ]
}, },
@@ -37,10 +85,6 @@
{ {
"title": "empty payload", "title": "empty payload",
"args": "1.1.1.1 -s 0" "args": "1.1.1.1 -s 0"
},
{
"title": "too high",
"args": "1.1.1.1 -s "
} }
] ]
} }