diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2022-02-10 14:32:13 +0000 | 
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2022-02-10 14:32:13 +0000 | 
| commit | d7485e7632c3625a6c179e12cecbc5b0c1bb73bd (patch) | |
| tree | 920b290c4d22786d93da111a67098dca2f69efd8 /templates | |
| parent | 8966f20ccb9897282d2ac7c174b87934fc38fc15 (diff) | |
| download | Smarker-d7485e7632c3625a6c179e12cecbc5b0c1bb73bd.tar.gz Smarker-d7485e7632c3625a6c179e12cecbc5b0c1bb73bd.zip | |
finished runtime analysis, added text output
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/txt.jinja2 | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/templates/txt.jinja2 b/templates/txt.jinja2 index 5ab8776..df63288 100644 --- a/templates/txt.jinja2 +++ b/templates/txt.jinja2 @@ -103,6 +103,30 @@ Report generated at {{ get_datetime() }}              {{ expand_function(function_name, function_contents)|indent(12, False) }}          {%- 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 txt_show_all_regex_occurrences == "True" and len_(results) > 0 %} +                        Occurrences list: +                        {%- for result in results %} +                            {{ result }} +                        {%- endfor -%} +                        {%- endif -%} +                {%- endfor -%} +            {%- endfor -%} +    {%- endif -%}      {%- endif -%}      {% else %}          *** File not present *** | 
