当我运行下面的代码时,我得到了一个错误。
def __init__(self, model, sess, loss_fn=None):
"""
To generate the White-box Attack Agent.
:param model: the target model which should have the input tensor, the target tensor and the loss tensor.
:param sess: the tensorflow session.
:param loss_f
最近,我参加了我的硕士课程软件工程课程的期末考试,其中一个问题是:
Unit Testing is considered:
a. White-box Testing
b. Black-box Testing
c. Either
在我7年的软件开发经验中,单元测试总是采用白盒方法。在编写测试时,测试人员始终对单元的实现有充分的了解。黑匣子测试总是以集成、系统和验收测试的形式出现。
然而,对考试的正确答案(根据教授)是,单元测试可以是白测试,也可以是黑箱测试。
我做了一些研究,似乎很多情况下“黑匣子单元测试”被用来描述一种测试优先的方法,其中单元测试是在代码编写之前编写的。然而,在我看来,这仍然是