pl_console.c | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 16 | 75.0 |
line | true | false | branch |
---|---|---|---|
17 | 17 | 12 | PerlIO* fp = (flags & DUK_CONSOLE_TO_STDERR) ? PerlIO_stderr() : PerlIO_stdout(); |
21 | 29 | 0 | if (flags & DUK_CONSOLE_FLUSH) { |
35 | 4 | 2 | if (found) { |
38 | 0 | 4 | if (SvTYPE(ref) != SVt_PVAV) { |
47 | 2 | 0 | if (hv_store(duk->msgs, target, tlen, ref, 0)) { |
54 | 6 | 0 | if (av_store(data, ++top, pvalue)) { |
67 | 3 | 3 | const char* target = (flags & DUK_CONSOLE_TO_STDERR) ? "stderr" : "stdout"; |
81 | 1 | 268 | if (duk->flags & DUK_OPT_FLAG_SAVE_MESSAGES) { |