{"action":"opened","issue":{"url":"https://api.github.com/repos/Brightify/Cuckoo/issues/251","repository_url":"https://api.github.com/repos/Brightify/Cuckoo","labels_url":"https://api.github.com/repos/Brightify/Cuckoo/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/Brightify/Cuckoo/issues/251/comments","events_url":"https://api.github.com/repos/Brightify/Cuckoo/issues/251/events","html_url":"https://github.com/Brightify/Cuckoo/issues/251","id":390569264,"node_id":"MDU6SXNzdWUzOTA1NjkyNjQ=","number":251,"title":"Cuckoo not generating stubs for grandparent functions.","user":{"login":"KordianKL","id":22641987,"node_id":"MDQ6VXNlcjIyNjQxOTg3","avatar_url":"https://avatars1.githubusercontent.com/u/22641987?v=4","gravatar_id":"","url":"https://api.github.com/users/KordianKL","html_url":"https://github.com/KordianKL","followers_url":"https://api.github.com/users/KordianKL/followers","following_url":"https://api.github.com/users/KordianKL/following{/other_user}","gists_url":"https://api.github.com/users/KordianKL/gists{/gist_id}","starred_url":"https://api.github.com/users/KordianKL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KordianKL/subscriptions","organizations_url":"https://api.github.com/users/KordianKL/orgs","repos_url":"https://api.github.com/users/KordianKL/repos","events_url":"https://api.github.com/users/KordianKL/events{/privacy}","received_events_url":"https://api.github.com/users/KordianKL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-13T08:33:31Z","updated_at":"2018-12-13T08:33:31Z","closed_at":null,"author_association":"NONE","body":"I'm using Cuckoo 12.0 and despite having \"inheritance (grandparent methods)\" crossed out from TODO section, Cuckoo can't generate stubs for functions from grandparent class. In my case it's:\r\n\r\n```\r\nclass A {\r\n    func original() {\r\n        #original implementation\r\n    }\r\n}\r\n\r\nclass B: A {\r\n    func someFunc() {}\r\n\r\n    #original() func should be inherited from class A\r\n}\r\n```\r\n\r\nObviously in \"production\" code, I can call `original()` func from instances of class B. I can also call it from test target.\r\n\r\nAfter adding B's source file to 'cuckoo.sh' Cuckoo is generating mock without `original()` func, and while using `MockB` I can call `original()` func - the original implementation from class A, but I can't stub it or mock it's behavior. For `someFunc()` everything works correctly.\r\n\r\nAnother thing is default implementation of `original()` if A was a protocol, but I guess that's just not supported yet as I've seen other issues taking on this problem."}}
{"actor":{"display_login":"KordianKL"}}