Code Review, Test Data, and Code Comparison Chapter 17.

10
Code Review, Test Data, and Code Comparison Chapter 17

Transcript of Code Review, Test Data, and Code Comparison Chapter 17.

Page 1: Code Review, Test Data, and Code Comparison Chapter 17.

Code Review, Test Data, and Code Comparison

Chapter 17

Page 2: Code Review, Test Data, and Code Comparison Chapter 17.

Integrated use of code review, test data, and code comparison for evidence collection purposes

Program codereview

Flaw hypothesisgeneration

Design of test data

Test of programInvestigation ofdiscrepancies

Code comparision ofBlueprint with

Production program

Creation ofProgram blueprint

Correction ofProgram flaws

Page 3: Code Review, Test Data, and Code Comparison Chapter 17.

Program source-code review

Objectives of code review- Identify erroneous code- identify unauthorized code- identify ineffective code- identify inefficient code- identify nonstandard code

Page 4: Code Review, Test Data, and Code Comparison Chapter 17.

Source-code review methodology

1. Select the source code to be examined.2. Review the organization’s programming

standards.3. Obtain an understanding of the program

specifications.4. Obtain the source-code listing.5. Review the programming language used

to implement the code.6. Review the source code.7. Formulate flaw hypotheses.

Page 5: Code Review, Test Data, and Code Comparison Chapter 17.

Benefits and costs of code review

Benefit Provides a level of detailed knowledge about a program.

DisadvantagesTime consuming and often difficult and costly to undertake.

Page 6: Code Review, Test Data, and Code Comparison Chapter 17.

Test Data

Reliable if it reveals a defect in a program when the program contains a defect.

Auditors should use a systematic approach to the design of test data.

Page 7: Code Review, Test Data, and Code Comparison Chapter 17.

Types of systematic approaches to the design of test data exist :

Black-box (specification-based testing methods)1. Equivalence partitioning2. boundary value analysis

White-box (program-based testing methods)1. Basis path testing2. Loop testing

Page 8: Code Review, Test Data, and Code Comparison Chapter 17.

Benefits & Costs of Test Data

Benefit it allows auditor to examine the quality of program code directly.

Disadvantages It is often time consuming and costly.

Page 9: Code Review, Test Data, and Code Comparison Chapter 17.

Types of code comparison :

1. Source-code comparison2. Object-code comparison

Source-code and object-code comparison are often most effective when they are used in conjunction with one another.

Page 10: Code Review, Test Data, and Code Comparison Chapter 17.

Benefits & Costs of Code Comparison

Benefit It is easy to undertake. Limitation It does not provide

evidence directly on the quality of the code being compared.