Results for ysh-proc-meta.test.sh

statusysh
pass 7
FAIL 2
total9
caseyshdescription
0FAIL myproc.docString()
details
1FAIL Mutate __sh_function__
details
2pass with eval builtin command, in global scope
3pass with eval builtin command, in local scope
4pass with eval builtin command, reeturning Dict
5pass with parseCommand() then io->eval(), in local scope
6pass with parseCommand() then io->eval(cmd, vars={out_dict: {}})
7pass with evalToDict()
8pass with runtime REFLECTION via __invoke__ - no parsing
7 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

ysh0 myproc.docString()

[ysh stdout] Expected '(Str) "YSH-style proc"\n(Null) null\n(Str) "doc \' comment with \\" quotes"\n(Null) null\n' Got '(Str) "YSH-style proc"\n(Null) null\n'
[ysh status] Expected 0, got 1

stdout:
(Str)   "YSH-style proc"
(Null)   null
stderr:
  var f = get(__sh_function__, 'f')
              ^~~~~~~~~~~~~~~
[ stdin ]:6: fatal: Undefined variable '__sh_function__'
ysh1 Mutate __sh_function__

[ysh status] Expected 0, got 1

stdout:
sh-func
stderr:
  setvar __sh_function__.f = 42
         ^~~~~~~~~~~~~~~
[ stdin ]:4: fatal: Undefined variable '__sh_function__'