Download presentation
Presentation is loading. Please wait.
1
Summary
2
1. public String t(String str) {
final String G = “A+A B+B C+C D+D E F ”; final String P = “ ”; If (! str.matches(“[^ABCDEF]+”)) return str; for (int i = 0; i < str.length(); index++) { int pos=G.substr(i,2); String n = P.substr(i,2); str = str.substring(0,i)+n+s.substring(i+2); } return str ; 12. }
3
1. public String t(String str) {
final String G = “A+A B+B C+C D+D E F ”; final String P = “ ”; If (! str.matches(“[^ABCDEF]+”)) return str; for (int i = 0; i < str.length(); index++) { int pos=G.substr(i,2); String n = P.substr(i,2); str = str.substring(0,i)+n+s.substring(i+2); } return str ; 13. }
4
Program Graph 1 12 6 2 7 8 9 3 10 4 11 5 13
5
DD-Path 1 A I 12 E 6 Case 1 2 B F 7 H 8 Case 2 Case 3 9 H 3 B Case 4 H
10 Case 5 C 4 11 H 5 D L 13
6
DD-Path Graph A E I B F H C D L
7
Common Program Text Coverage Models
Statement Coverage Segment Coverage Branch Coverage Multiple-Condition Coverage
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.