Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
private boolean onSave(String fileId) | 2 / 2 | 100 % |
|
2 / 2 | 100 % |
|
0 / 0 | --- | 1 / 1 | 100 % |
|
AppController.java | ||
---|---|---|
161 | private boolean onSave(String fileId) { | |
162 | String path = model.getPathOfFile(fileId); | |
163 | ||
164 | if (path == null) { | |
165 | return onSaveAs(fileId); | |
166 | } else { | |
167 | save(fileId, new File(path)); | |
168 | return true; | |
169 | } | |
170 | } |