Testing Lab Exercises (WBT)

Draw Control-Flow Diagrams

Draw Control-Flow Diagrams

  1. Draw a control-flow diagram1 for each of the following methods:
    • moveFirstJokerDownOne
    • moveSecondJokerDownTwo
  2. Using your calculated values for cyclomatic complexity, identify values for the method parameters that will cover all the possible paths through the method. For example, if your cyclomatic complexity is 5, you should identify 5 sets of input values that will execute the 5 different paths through the method.
  3. Save your control-flow diagrams (as PNG or JPEG) in your Solitaire/project_docs folder.

Footnote

  1. We suggest using draw.io for your diagrams.