summaryrefslogtreecommitdiffstats
path: root/templates/md.jinja2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/md.jinja2')
-rw-r--r--templates/md.jinja228
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/md.jinja2 b/templates/md.jinja2
index 400da26..f998f7c 100644
--- a/templates/md.jinja2
+++ b/templates/md.jinja2
@@ -100,6 +100,34 @@ Please note that this file cannot be analysed or have tests preformed upon it-
{{ expand_function(function_name, function_contents)|indent(8, True) }}
{%- endfor -%}
{%- endif -%}
+{% if "run" in files_contents.keys() %}
+ - #### Runtime Analysis:
+{%- set flat_runtime = flatten_struct(files_contents["run"]) %}
+{%- for cmd, runtime_contents in flat_runtime.items() %}
+ - ##### Command `{{ cmd }}`:
+ - **Monitor:**
+{%- if "monitor" in runtime_contents.keys() %}
+ - {{ runtime_contents["monitor"] }}
+{%- else %}
+ - stdout
+{%- endif %}
+ - **Regexes:**
+{%- for regex_, results in runtime_contents["regexes"].items() %}
+ - `{{regex_}}`:
+ - Found occurrences: {{ len_(results) }}
+{%- if md_show_all_regex_occurrences == "True" and len_(results) > 0 %}
+ - Occurrences list:
+{%- for result in results %}
+ - `{{ result }}`
+{%- endfor -%}
+{%- if txt_show_all_run_output == "True" %}
+ - Full runtime output:
+{{ code_block(runtime_contents["full_output"])|indent(24, True) }}
+{%- endif -%}
+{%- endif -%}
+{%- endfor -%}
+{%- endfor -%}
+{%- endif -%}
{%- endif -%}
{% else %}
- [ ] File not present