我有一个名为helper.js的文件,它包含两个函数exportconstfuncA=(key)=>{returnfuncB(key)};exportconstfuncB=(key,prop)=>{returnsomeObj;};我有我的helper.spec.js来测试helper.js文件的功能。import{funcA,funcB}from'helper';describe('helper',()=>{test('testFuncB',()=>{}test('testFuncA',()=>{}}funcB的测试非常简单,我只是调用它并期待someObj问题是测试funcA,为了测
我有以下内容:classA::FuncA(){...codeFuncB();...code}classA::FuncB(constchar*pText){SelectObject(m_hDC,GetStockObject(SYSTEM_FONT));wglUseFontBitmaps(m_hDC,0,255,1000);glListBase(1000);glCallLists(static_cast(strlen(pText)),GL_UNSIGNED_BYTE,pText);}我可以在FuncA的任何地方设置断点。如果我尝试进入FuncB,它就会越过。它将接受FuncB中的断点,但永