提交 9bbcbb07 编写于 作者: 1 15929983503

bytrace测试用例增加可选参数传参undefined测试

Signed-off-by: N15929983503 <duanhaizhen@huawei.com>
上级 0041fd09
......@@ -201,6 +201,22 @@ describe("BytraceTest", function () {
console.info("------DFX_DFR_Bytrace_0500 end------");
done();
})
it("DFX_DFR_Bytrace_0600", 0, async function (done) {
console.info("-------DFX_DFR_Bytrace_0600 start--------");
let flag = true;
try {
bytrace.startTrace("funcA", 111, undefined);
expect(flag).assertTrue();
} catch (err) {
flag = false;
console.info("DFX_DFR_Bytrace_0600 fail!");
console.info("DFX_DFR_Bytrace_0600 err = " + err);
expect(flag).assertTrue();
}
console.info("------DFX_DFR_Bytrace_0600 end------");
done();
})
})
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册