| pl_console.c | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 12 | 16 | 75.0 |
| line | true | false | branch |
|---|---|---|---|
| 16 | 17 | 12 | PerlIO* fp = (flags & DUK_CONSOLE_TO_STDERR) ? PerlIO_stderr() : PerlIO_stdout(); |
| 19 | 29 | 0 | if (flags & DUK_CONSOLE_FLUSH) { |
| 34 | 4 | 102 | if (found) { |
| 37 | 0 | 4 | if (SvTYPE(ref) != SVt_PVAV) { |
| 46 | 102 | 0 | if (hv_store(duk->msgs, target, tlen, ref, 0)) { |
| 53 | 106 | 0 | if (av_store(data, ++top, pvalue)) { |
| 65 | 3 | 103 | const char* target = (flags & DUK_CONSOLE_TO_STDERR) ? "stderr" : "stdout"; |
| 79 | 106 | 29 | if (duk->flags & DUK_OPT_FLAG_SAVE_MESSAGES) { |