Merge "[docs] Update mailing list to use #yardstick" into stable/gambia
[yardstick.git] / tools / cover.awk
1 BEGIN{
2     template = "%6s   %-75s\n"
3     printf template, "Delta", "Module Path"
4 }
5
6 /^-/{
7     s = substr($1, 2)
8     x[s] = $3;
9 };
10
11 /^+/{
12     s = substr($1, 2)
13     d = $3
14     if (s in x)
15        d = d - x[s]
16     y[s" "d] = d
17 }
18
19 END{
20     asorti(y, z1, "@val_num_asc")
21     for (i=1; i <= length(z1); i++){
22         split(z1[i], z2, " ")
23         printf template, z2[2], z2[1]
24     }
25 }