Statement Coverage | Branch Coverage | Loop Coverage | Strict Condition Coverage | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
public boolean closeFile(String fileId, boolean force) | 1 / 1 | 100 % |
|
1 / 2 | 50 % |
|
0 / 0 | --- | 0 / 2 | 0 % |
|
AppModel.java | ||
---|---|---|
111 | public boolean closeFile(String fileId, boolean force) { | |
112 | if (isFileModified(fileId) && !force) { | |
113 | return false; | |
114 | } | |
115 | ||
116 | this.appFiles.remove(fileId); | |
117 | return true; | |
118 | } |