Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
private boolean onSaveAs(String fileId) | 2 / 2 | 100 % |
|
1 / 2 | 50 % |
|
0 / 0 | --- | 0 / 1 | 0 % |
|
AppController.java | ||
---|---|---|
172 | private boolean onSaveAs(String fileId) { | |
173 | String path = view.showSaveAsDialog(fileId); | |
174 | ||
175 | if (path == null) { | |
176 | return false; | |
177 | } else { | |
178 | save(fileId, new File(path)); | |
179 | return true; | |
180 | } | |
181 | } |