Github user liming01 commented on the issue: https://github.com/apache/incubator-hawq/pull/1198 After investigation, it seems we can not use cmock to reproduce HAWQ-1417. The reason is: we need to mock all functions called in these functions, and also we need make one relation with catalog in memory, and data on disk. I looked into some unit tests exists in backend, all tests are testing simple logic, and calling some independent modules, so the functions need to be mocked is very limited.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---