{"action":"opened","issue":{"url":"https://api.github.com/repos/ninenines/erlang.mk/issues/409","labels_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/409/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/409/comments","events_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/409/events","html_url":"https://github.com/ninenines/erlang.mk/issues/409","id":112999151,"number":409,"title":"Cover can fail with 'badarith' error","user":{"login":"hdima","id":160338,"avatar_url":"https://avatars.githubusercontent.com/u/160338?v=3","gravatar_id":"","url":"https://api.github.com/users/hdima","html_url":"https://github.com/hdima","followers_url":"https://api.github.com/users/hdima/followers","following_url":"https://api.github.com/users/hdima/following{/other_user}","gists_url":"https://api.github.com/users/hdima/gists{/gist_id}","starred_url":"https://api.github.com/users/hdima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdima/subscriptions","organizations_url":"https://api.github.com/users/hdima/orgs","repos_url":"https://api.github.com/users/hdima/repos","events_url":"https://api.github.com/users/hdima/events{/privacy}","received_events_url":"https://api.github.com/users/hdima/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-23T11:04:44Z","updated_at":"2015-10-23T11:04:44Z","closed_at":null,"body":"In my project I have a module which doesn't contain any functions but only defines a behaviour so cover fails with `badarith` error at https://github.com/ninenines/erlang.mk/blob/master/plugins/cover.mk#L106 because `Y` and `N` are both 0 for the module and it tries to do `round(100 * 0 / (0 + 0))`."}}