sayak-m / shcov

Automatically exported from code.google.com/p/shcov
GNU General Public License v2.0
0 stars 0 forks source link

Problems with case statement #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run shcov on attached script

What is the expected output? What do you see instead?

Expected full coverage, but two lines are marked as not run:
1. line with a comment following the ")" (line 8 of script)
2. line with only the case end marker ";;" (line 10 of script)

What version of the product are you using? On what operating system?

Version 4 on Solaris 10

Please provide any additional information below.

Original issue reported on code.google.com by henrik.m...@gmail.com on 16 Jul 2009 at 10:37

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for your report (I need to setup automatic notification of new bugs)!

You are right anyway. The first non-executed line

  one) # first

is marked as executable because of a regexp problem. If you have

  one) 
    # first

instead, it's fine (i.e., detects it as non-executable). I'll also check the ;; 
issue.

Original comment by simon.ka...@gmail.com on 18 Aug 2009 at 5:17

GoogleCodeExporter commented 8 years ago
5 years and no update, until today :-)

I've implemented bash coverage support for kcov,

  http://simonkagstrom.github.io/kcov/

and I'm therefore deprecating shcov. However, I've made sure that this 
particular bug doesn't show up with kcov! Setting to WontFix.

Original comment by simon.ka...@gmail.com on 30 Jun 2014 at 7:15