#!/bin/bash

# This shows code coverage

# 1st argument: filename to be shown

# colors definition
COLOR_NONE="\\x1b[0m"
COLOR_BOLD="\\x1b[1m"
COLOR_RED="\\x1b[31m"
COLOR_GREEN="\\x1b[32m"

cat $1 \
| sed "s/.*#:.*/${COLOR_BOLD}${COLOR_RED}\0${COLOR_NONE}/g" \
| sed "s/.*[0-9]:.*[0-9]:.*/${COLOR_BOLD}\0${COLOR_NONE}/g"

#eof