{"action":"opened","issue":{"url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/62","labels_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/62/comments","events_url":"https://api.github.com/repos/SimonKagstrom/kcov/issues/62/events","html_url":"https://github.com/SimonKagstrom/kcov/issues/62","id":58301474,"number":62,"title":"kcov not covering case statements with balanced parenthesis","user":{"login":"Mark-E-Hamilton","id":5420400,"avatar_url":"https://avatars.githubusercontent.com/u/5420400?v=3","gravatar_id":"","url":"https://api.github.com/users/Mark-E-Hamilton","html_url":"https://github.com/Mark-E-Hamilton","followers_url":"https://api.github.com/users/Mark-E-Hamilton/followers","following_url":"https://api.github.com/users/Mark-E-Hamilton/following{/other_user}","gists_url":"https://api.github.com/users/Mark-E-Hamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/Mark-E-Hamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mark-E-Hamilton/subscriptions","organizations_url":"https://api.github.com/users/Mark-E-Hamilton/orgs","repos_url":"https://api.github.com/users/Mark-E-Hamilton/repos","events_url":"https://api.github.com/users/Mark-E-Hamilton/events{/privacy}","received_events_url":"https://api.github.com/users/Mark-E-Hamilton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-20T02:07:35Z","updated_at":"2015-02-20T02:07:35Z","closed_at":null,"body":"We use balanced parenthesis in all of our shell case statement so that syntax hightlighting and brace matching works correctly in editors. However, if I test this example script four times, passing it  'a', 'b', 'c', and 'd' successively :\r\n````\r\n#!/bin/bash\r\ncase ${1} in\r\n(a)\r\n   echo Got $1\r\n   ;;\r\n(b)\r\n   echo Got $1\r\n   ;;\r\nc)\r\n   echo Got $1\r\n   ;;\r\n*)\r\n   echo Got $1\r\n   ;;\r\nesac\r\n````\r\nkcov only reports 71.4%  coverage. The case and echo statements are all green, the 'c0' and '*0' lines are white (not executed, I think) but the 'a' and '(b)' lines are red for not covered\r\n"}}