The old definition of testing - execution of a program with the intent of exposing coding errors - is far too narrow 關(guān)于軟件測試的舊的定義? ?對一個程序執(zhí)行測試旨在發(fā)現(xiàn)代碼中的缺陷? ?現(xiàn)在看來太狹義了。
Beefing up coding standards can all but eliminate some types of coding errors , like bugs related to brace or comment placement 補充編碼標準幾乎能夠消除某些類型的編碼錯誤,如關(guān)于放置花括號或注釋的錯誤。
Common coding errors reported by the tool include buffer overrun , un - initialized memory , null pointer dereference , memory and resource leaks 工具報告的常見編碼錯誤包括緩沖區(qū)溢出、內(nèi)存未初始化、空指針取消引用以及內(nèi)存和資源泄漏。
Minor lapses and barely - detectable coding errors - such as misaligned pointers or uninitialized variables - can have enormous consequences 一些較小的失誤和幾乎不被發(fā)覺的編碼錯誤比如指針偏差或者變量未初始化可能會帶來嚴重的后果。
Code analysis tool detects common coding errors , such as buffer overrun , un - initialized memory , null pointer dereference , and memory and resource leaks 代碼分析工具用于檢測常見的編碼錯誤,例如緩沖區(qū)溢出、內(nèi)存未初始化、空指針取消引用,以及內(nèi)存和資源泄露。