1 2 3*** mock-C-ify 4 5Any legacy code that is incapable of mocking may be a candidate for the 6use of the mockCify tool to mock code in order to provide symbolic endpoints during the linkage 7phase with additonal run time configurability to provide crafted testing solution. 8 9 10** To use 11 12<mockcify_tool> <namespace> < <source_code> 13 14mockcify_tool: mockcify.pl 15namespace: A brief single token namespace conventionally used from the path and filename 16source_code: The C code being mocked. 17 18``` 19e.g. 20mockcify.pl btif_sock_rfc < btif/src/btif_sock_rfc.cc 21``` 22 23NOTE: This tool is does not handle Cpp code well and is recommended to use gmock for those solutions. 24 25Other Cpp language syntax, such as move semantics and lambdas also do not parse well and may need hand 26crafting for those last few pieces. 27 28