How can intelliTest do full code cover

weixin_38053743 2017-04-17 01:12:18
I use intelliTest and found that is very difficulty for me to full code cover a method.So I write some test code:


public class InstanceA
{
private int[] m_int;

public void Func2()
{

}
}

yes,just simple code, and then I create intelliTest and run for the "Func2".IntelliTest show 1/3 blocks covered. I can not understand, I have do nothing in the Func2, so where is the two uncoverd blocks?If I declare m_int with "int" not
"int[]", IntelliTest show 1/1 blocks.What happened with intelliTest exploration?

...全文
29 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧