Results 26 comments of sinojelly

> 网络应该是好的。其它登录方式能登录,验证码不行。

I also encounter this issue. The PlantUML.log file is empty. I tried to debug the extension, but vscode module not found:) ![Screenshot_20210215_110650_vn vhn vsc](https://user-images.githubusercontent.com/520711/107902340-1a70da80-6f81-11eb-974b-5a659f07005c.jpg) ![Screenshot_20210215_110342_vn vhn vsc](https://user-images.githubusercontent.com/520711/107902424-5d32b280-6f81-11eb-9401-cf42418b6a54.jpg) ![Screenshot_20210214_153736_vn vhn vsc](https://user-images.githubusercontent.com/520711/107902456-6facec00-6f81-11eb-84e5-66db48eb1c70.jpg)...

Thanks for your response. Perhaps they are thinking that tag / version represents an official release version of the code. That suggests it is more reliable. From this point of...

@hjlarry 感谢及时回答,当减少live数量后,后面报了一堆Task was destroyed but it is pending!,这是什么问题导致的? https://api.zhihu.com/lives/877831252886061056 has finished Finished in 0.726 seconds Task was destroyed but it is pending! task: Task was destroyed but it is pending!...

C++是跨平台的,即使开发的是移动平台的软件,也可以在开发电脑上运行测试。 我们之前是这样做的。 如果把 mockcpp运行到移动设备上,可能会遇到一些问题,特别是有部分Virtual Table相关的代码。 比如 VirtualTable.cpp, VirtualTableUtils.cpp ,它可能跟编译器是相关的。 不同编译器下,需要进行修改。 也欢迎感兴趣的同学来一起研究这些内容。

You can take a look at this: https://github.com/sinojelly/mockcpp/blob/master/tests/ut/TestNonvirtualMethodMocker.h Because nonvirtual member function is not interface, maybe mutable, tests depend on it is harmful. So there is no convenient interface to...

> Does mockcpp support virtual functions? It is not pure virtual functions. I try to mock virtual function in class, but return value is not what I expected thank you...

报错的意思是,template带默认参数, 只能用在类模板场景。现在是方法模板,VS就报错了。 可能在 VS 下,要找个其它方案,或者查询下VS新版本,是否能支持这个场景。

你说的是 C 函数的mock [ 用 MOCKER(func) ] 还是 C++虚函数的mock [ 用 MOCK_METHOD(mocker, method) ]。 如果是前者,可能多个 C 函数,都是统一通过 GlobalMockObject操作的,暂时可能不好单个操作。 如果是后者,可能你针对一个mock对象 mocker,可以单独进行操作。但是一个 mocker 有多个 method 的mock,要取消其中某一个,可能没有现成的方式支持。 我还没详细去看怎么支持单个 mocker 的取消。 基于已有的特性,每个mockder 可以指定 id,...

嗯,大概是这个思路。但是要让使用者,可以方便的 reset 指定的mocker 才行。 从你贴的代码来看, ChainableMockMethodContainerImpl::ValueType 这样的类型,用户是不好用的。 所以我说 reset 指定的 mocker, 得先有个办法指定 mocker,然后reset 它。 我能想到的是 mocker 可以指定 id, 所以如果能把 mocker 指定的 id, 与 reset 实现联系起来。 用户就可以用下面方式reset指定的mocker了。 mocker.reset(id)