这种方法根本不会产生安全的代码,因为您无法创建足够多的测试来涵盖攻击者能做到的所有稀奇古怪的事情。
That approach simply won't produce secure code, because you can't create enough tests to represent all the odd things an attacker can do.
对于代码中真正关键的部分,可能需要在进行重构之前添加一些功能测试作为一种安全保障。
For really critical sections of your code, you might consider adding some functional tests as a safety net before you start refactoring.
单元测试可以提供最重要的安全屏障,允许您按照自己的意愿重构代码库。
Unit tests represent the primary safety net that allows you to refactor your code base at will.
每个测试都起到质量反馈回路的作用,给那些想修改产品代码的人创建了一个安全保护网,以及一份可以执行的文档。
Each test will serve as a quality feedback loop, creating both a safety net and an executable form of documentation for anyone who wants to change the production code.
支持测试工具,这样可以很容易的对Shiro的安全代码进行单元测试和集成测试。
Test harness support, making it very easy to have full testing of Shiro secured-code in unit and integration tests.
此功能的目的是帮助开发人员,通过运行一个完整的测试集来检查在签入代码的时候所更改的代码是否安全。
The purpose of this feature is to assist the developer in running a complete set of tests which would show if the code change is safe to be checked-in.
在另一方面,没有经过相应测试的代码更难于理解和安全地修改。
On the flipside, code without corresponding tests can be more challenging to understand and is harder to modify safely.
除非是影响生命安全的重要软件,否则您可能从来不会如此详细地测试代码,也不会了解到原来它是如此测试的。
Unless you work on loss-of-life-critical software, you probably have never tested code to that extent or seen it so tested.
SEA还将负责与编写安全性服务代码的程序员及在部署系统前对其进行测试的安全性系统测试人员合作。
The SEA will also be responsible for working with programmers who have to code security services and security system testers who can put the system through a testing phase before it is deployed.
业界为提高web服务安全性代码质量做了很多努力,包括业内组织机构的工作和供应商驱动的互操作性测试。
Some efforts to improve the quality of web services security code have been made, including the work of an industry-wide organization and vendor-driven interoperability testing.
核心内容包括了基于白箱测试的思想,通过对源代码进行静态分析,实现对代码的安全检查和对代码剽窃的自动检测。
The core content is the implementation of code security and code plagiarism detect via static analysis of source codes based on the idea of white box test.
单元测试使您能够安全地重构代码。
单元测试使您能够安全地重构代码。
应用推荐