--- parser3/tests/264.html 2017/02/13 17:15:56 1.2 +++ parser3/tests/264.html 2024/10/22 02:46:46 1.4 @@ -13,3 +13,19 @@ $s[ $f[^file::exec[cat^os[-windows].sh; $.stdin[$s] ;stdin]] $f.text + +code coverage tests: + +2. ^try-catch{ ^file::exec[cat^os[-windows].sh; $.HTTP_OK[value] $.CGI_OK[value] $.REMOTE_ADDR[allowed] $.unsafe_env_name[env_value] ] } +3. ^try-catch{ ^file::exec[text] } +4. ^try-catch{ ^file::exec[cat^os[-windows].sh; $.stdin[ $.hash[] ] ] } +5. ^try-catch{ ^file::exec[cat^os[-windows].sh; ;arg1;^table::create[nameless]{arg2}; $.arg_hash[] ] } + +6. $f[^file::exec[cat^os[-windows].sh; ;args;^table::create[nameless]{arg 2};;^table::create[nameless]{arg 4^#0Aarg 5};arg 6]] + $f.text + +7. $f[^file::exec[cat^os[-windows].sh; ;^array::create[args;arg 2;;arg4]](5)[arg6]] + $f.text + +8. ^try-catch{ $f[^file::exec[cat^os[-windows].sh; ;^array::create[args; $.bug[yes] ]]] } +