| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.qedeq.kernel.bo.module; |
| 17 |
|
|
| 18 |
|
import java.io.File; |
| 19 |
|
import java.lang.reflect.InvocationTargetException; |
| 20 |
|
|
| 21 |
|
import org.qedeq.base.io.SourceArea; |
| 22 |
|
import org.qedeq.base.test.DynamicGetter; |
| 23 |
|
import org.qedeq.base.test.QedeqTestCase; |
| 24 |
|
import org.qedeq.base.trace.Trace; |
| 25 |
|
import org.qedeq.kernel.base.list.Atom; |
| 26 |
|
import org.qedeq.kernel.base.list.ElementList; |
| 27 |
|
import org.qedeq.kernel.base.module.Author; |
| 28 |
|
import org.qedeq.kernel.base.module.AuthorList; |
| 29 |
|
import org.qedeq.kernel.base.module.Axiom; |
| 30 |
|
import org.qedeq.kernel.base.module.Chapter; |
| 31 |
|
import org.qedeq.kernel.base.module.ChapterList; |
| 32 |
|
import org.qedeq.kernel.base.module.Formula; |
| 33 |
|
import org.qedeq.kernel.base.module.FunctionDefinition; |
| 34 |
|
import org.qedeq.kernel.base.module.Header; |
| 35 |
|
import org.qedeq.kernel.base.module.Import; |
| 36 |
|
import org.qedeq.kernel.base.module.ImportList; |
| 37 |
|
import org.qedeq.kernel.base.module.Latex; |
| 38 |
|
import org.qedeq.kernel.base.module.LatexList; |
| 39 |
|
import org.qedeq.kernel.base.module.LinkList; |
| 40 |
|
import org.qedeq.kernel.base.module.LiteratureItem; |
| 41 |
|
import org.qedeq.kernel.base.module.LiteratureItemList; |
| 42 |
|
import org.qedeq.kernel.base.module.Location; |
| 43 |
|
import org.qedeq.kernel.base.module.LocationList; |
| 44 |
|
import org.qedeq.kernel.base.module.Node; |
| 45 |
|
import org.qedeq.kernel.base.module.PredicateDefinition; |
| 46 |
|
import org.qedeq.kernel.base.module.Proof; |
| 47 |
|
import org.qedeq.kernel.base.module.ProofList; |
| 48 |
|
import org.qedeq.kernel.base.module.Proposition; |
| 49 |
|
import org.qedeq.kernel.base.module.Qedeq; |
| 50 |
|
import org.qedeq.kernel.base.module.Rule; |
| 51 |
|
import org.qedeq.kernel.base.module.Section; |
| 52 |
|
import org.qedeq.kernel.base.module.SectionList; |
| 53 |
|
import org.qedeq.kernel.base.module.Specification; |
| 54 |
|
import org.qedeq.kernel.base.module.Subsection; |
| 55 |
|
import org.qedeq.kernel.base.module.SubsectionList; |
| 56 |
|
import org.qedeq.kernel.base.module.SubsectionType; |
| 57 |
|
import org.qedeq.kernel.base.module.Term; |
| 58 |
|
import org.qedeq.kernel.base.module.UsedByList; |
| 59 |
|
import org.qedeq.kernel.base.module.VariableList; |
| 60 |
|
import org.qedeq.kernel.bo.service.QedeqBoFactoryTest; |
| 61 |
|
import org.qedeq.kernel.common.DefaultModuleAddress; |
| 62 |
|
import org.qedeq.kernel.common.ModuleAddress; |
| 63 |
|
import org.qedeq.kernel.common.ModuleDataException; |
| 64 |
|
import org.qedeq.kernel.visitor.QedeqNotNullTraverser; |
| 65 |
|
import org.qedeq.kernel.visitor.QedeqVisitor; |
| 66 |
|
import org.qedeq.kernel.xml.mapper.Context2SimpleXPath; |
| 67 |
|
import org.qedeq.kernel.xml.tracker.SimpleXPath; |
| 68 |
|
import org.qedeq.kernel.xml.tracker.XPathLocationParser; |
| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
|
@link |
| 73 |
|
|
| 74 |
|
@author |
| 75 |
|
|
|
|
|
| 89.5% |
Uncovered Elements: 18 (171) |
Complexity: 78 |
Complexity Density: 0.84 |
|
| 76 |
|
public class VisitorContextTest extends QedeqTestCase implements QedeqVisitor { |
| 77 |
|
|
| 78 |
|
|
| 79 |
|
private static final Class CLASS = VisitorContextTest.class; |
| 80 |
|
|
| 81 |
|
|
| 82 |
|
private QedeqNotNullTraverser traverser; |
| 83 |
|
|
| 84 |
|
private Qedeq qedeq; |
| 85 |
|
|
| 86 |
|
private File moduleFile; |
| 87 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
1
PASS
|
|
| 88 |
1
|
public void testContext() throws Exception {... |
| 89 |
1
|
moduleFile = QedeqBoFactoryTest.getQedeqFile("math/qedeq_set_theory_v1.xml"); |
| 90 |
1
|
final ModuleAddress globalContext = new DefaultModuleAddress(moduleFile); |
| 91 |
1
|
qedeq = QedeqBoFactoryTest.loadQedeq(moduleFile); |
| 92 |
1
|
traverser = new QedeqNotNullTraverser(globalContext, this); |
| 93 |
1
|
traverser.accept(qedeq); |
| 94 |
|
} |
| 95 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 96 |
1224
|
public void visitEnter(final Atom atom) throws ModuleDataException {... |
| 97 |
1224
|
checkContext(); |
| 98 |
|
} |
| 99 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 100 |
1471
|
public void visitEnter(final ElementList list) throws ModuleDataException {... |
| 101 |
1471
|
checkContext(); |
| 102 |
|
} |
| 103 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 104 |
1
|
public void visitEnter(final Author author) throws ModuleDataException {... |
| 105 |
1
|
checkContext(); |
| 106 |
|
} |
| 107 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 108 |
1
|
public void visitEnter(final AuthorList authorList) throws ModuleDataException {... |
| 109 |
1
|
checkContext(); |
| 110 |
|
} |
| 111 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 112 |
12
|
public void visitEnter(final Axiom axiom) throws ModuleDataException {... |
| 113 |
12
|
checkContext(); |
| 114 |
|
} |
| 115 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 116 |
8
|
public void visitEnter(final Chapter chapter) throws ModuleDataException {... |
| 117 |
8
|
checkContext(); |
| 118 |
|
} |
| 119 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 120 |
1
|
public void visitEnter(final ChapterList chapterList) throws ModuleDataException {... |
| 121 |
1
|
checkContext(); |
| 122 |
|
} |
| 123 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 124 |
72
|
public void visitEnter(final Formula formula) throws ModuleDataException {... |
| 125 |
72
|
checkContext(); |
| 126 |
|
} |
| 127 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 128 |
16
|
public void visitEnter(final FunctionDefinition functionDefinition) throws ModuleDataException {... |
| 129 |
16
|
checkContext(); |
| 130 |
|
} |
| 131 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 132 |
1
|
public void visitEnter(final Header header) throws ModuleDataException {... |
| 133 |
1
|
checkContext(); |
| 134 |
|
} |
| 135 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 136 |
1
|
public void visitEnter(final Import imp) throws ModuleDataException {... |
| 137 |
1
|
checkContext(); |
| 138 |
|
} |
| 139 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 140 |
1
|
public void visitEnter(final ImportList importList) throws ModuleDataException {... |
| 141 |
1
|
checkContext(); |
| 142 |
|
} |
| 143 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 144 |
522
|
public void visitEnter(final Latex latex) throws ModuleDataException {... |
| 145 |
522
|
checkContext(); |
| 146 |
|
} |
| 147 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 148 |
267
|
public void visitEnter(final LatexList latexList) throws ModuleDataException {... |
| 149 |
267
|
checkContext(); |
| 150 |
|
} |
| 151 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 152 |
1
|
public void visitEnter(final LinkList linkList) throws ModuleDataException {... |
| 153 |
1
|
checkContext(); |
| 154 |
|
} |
| 155 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 156 |
3
|
public void visitEnter(final LiteratureItem literatureItem) throws ModuleDataException {... |
| 157 |
3
|
checkContext(); |
| 158 |
|
} |
| 159 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 160 |
1
|
public void visitEnter(final LiteratureItemList literatureItemList) throws ModuleDataException {... |
| 161 |
1
|
checkContext(); |
| 162 |
|
} |
| 163 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 164 |
3
|
public void visitEnter(final Location location) throws ModuleDataException {... |
| 165 |
3
|
checkContext(); |
| 166 |
|
} |
| 167 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 168 |
2
|
public void visitEnter(final LocationList locationList) throws ModuleDataException {... |
| 169 |
2
|
checkContext(); |
| 170 |
|
} |
| 171 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 172 |
90
|
public void visitEnter(final Node authorList) throws ModuleDataException {... |
| 173 |
90
|
checkContext(); |
| 174 |
|
} |
| 175 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 176 |
7
|
public void visitEnter(final PredicateDefinition predicateDefinition)... |
| 177 |
|
throws ModuleDataException { |
| 178 |
7
|
checkContext(); |
| 179 |
|
} |
| 180 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 181 |
18
|
public void visitEnter(final Proof proof) throws ModuleDataException {... |
| 182 |
18
|
checkContext(); |
| 183 |
|
} |
| 184 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 185 |
17
|
public void visitEnter(final ProofList proofList) throws ModuleDataException {... |
| 186 |
17
|
checkContext(); |
| 187 |
|
} |
| 188 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 189 |
54
|
public void visitEnter(final Proposition proposition) throws ModuleDataException {... |
| 190 |
54
|
checkContext(); |
| 191 |
|
} |
| 192 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 193 |
1
|
public void visitEnter(final Qedeq qedeq) throws ModuleDataException {... |
| 194 |
1
|
checkContext(); |
| 195 |
|
} |
| 196 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 197 |
1
|
public void visitEnter(final Rule rule) throws ModuleDataException {... |
| 198 |
1
|
checkContext(); |
| 199 |
|
} |
| 200 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 201 |
22
|
public void visitEnter(final Section section) throws ModuleDataException {... |
| 202 |
22
|
checkContext(); |
| 203 |
|
} |
| 204 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 205 |
5
|
public void visitEnter(final SectionList sectionList) throws ModuleDataException {... |
| 206 |
5
|
checkContext(); |
| 207 |
|
} |
| 208 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 209 |
2
|
public void visitEnter(final Specification specification) throws ModuleDataException {... |
| 210 |
2
|
checkContext(); |
| 211 |
|
} |
| 212 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 213 |
1
|
public void visitEnter(final Subsection subsection) throws ModuleDataException {... |
| 214 |
1
|
checkContext(); |
| 215 |
|
} |
| 216 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 217 |
14
|
public void visitEnter(final SubsectionList subsectionList) throws ModuleDataException {... |
| 218 |
14
|
checkContext(); |
| 219 |
|
} |
| 220 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 221 |
0
|
public void visitEnter(final SubsectionType subsectionType) throws ModuleDataException {... |
| 222 |
0
|
checkContext(); |
| 223 |
|
} |
| 224 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 225 |
16
|
public void visitEnter(final Term term) throws ModuleDataException {... |
| 226 |
16
|
checkContext(); |
| 227 |
|
} |
| 228 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 229 |
0
|
public void visitEnter(final UsedByList usedByList) throws ModuleDataException {... |
| 230 |
0
|
checkContext(); |
| 231 |
|
} |
| 232 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 233 |
20
|
public void visitEnter(final VariableList variableList) throws ModuleDataException {... |
| 234 |
20
|
checkContext(); |
| 235 |
|
} |
| 236 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 237 |
1
|
public void visitLeave(final Author author) throws ModuleDataException {... |
| 238 |
1
|
checkContext(); |
| 239 |
|
} |
| 240 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 241 |
1
|
public void visitLeave(final AuthorList authorList) throws ModuleDataException {... |
| 242 |
1
|
checkContext(); |
| 243 |
|
} |
| 244 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 245 |
12
|
public void visitLeave(final Axiom axiom) throws ModuleDataException {... |
| 246 |
12
|
checkContext(); |
| 247 |
|
} |
| 248 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 249 |
8
|
public void visitLeave(final Chapter chapter) throws ModuleDataException {... |
| 250 |
8
|
checkContext(); |
| 251 |
|
} |
| 252 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 253 |
1
|
public void visitLeave(final ChapterList chapterList) throws ModuleDataException {... |
| 254 |
1
|
checkContext(); |
| 255 |
|
} |
| 256 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 257 |
72
|
public void visitLeave(final Formula formula) throws ModuleDataException {... |
| 258 |
72
|
checkContext(); |
| 259 |
|
} |
| 260 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 261 |
16
|
public void visitLeave(final FunctionDefinition functionDefinition) throws ModuleDataException {... |
| 262 |
16
|
checkContext(); |
| 263 |
|
} |
| 264 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 265 |
1
|
public void visitLeave(final Header header) throws ModuleDataException {... |
| 266 |
1
|
checkContext(); |
| 267 |
|
} |
| 268 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 269 |
1
|
public void visitLeave(final Import imp) throws ModuleDataException {... |
| 270 |
1
|
checkContext(); |
| 271 |
|
} |
| 272 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 273 |
1
|
public void visitLeave(final ImportList importList) throws ModuleDataException {... |
| 274 |
1
|
checkContext(); |
| 275 |
|
} |
| 276 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 277 |
522
|
public void visitLeave(final Latex latex) throws ModuleDataException {... |
| 278 |
522
|
checkContext(); |
| 279 |
|
} |
| 280 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 281 |
267
|
public void visitLeave(final LatexList latexList) throws ModuleDataException {... |
| 282 |
267
|
checkContext(); |
| 283 |
|
} |
| 284 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 285 |
1
|
public void visitLeave(final LinkList linkList) throws ModuleDataException {... |
| 286 |
1
|
checkContext(); |
| 287 |
|
} |
| 288 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 289 |
3
|
public void visitLeave(final LiteratureItem literatureItem) throws ModuleDataException {... |
| 290 |
3
|
checkContext(); |
| 291 |
|
} |
| 292 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 293 |
1
|
public void visitLeave(final LiteratureItemList literatureItemList) throws ModuleDataException {... |
| 294 |
1
|
checkContext(); |
| 295 |
|
} |
| 296 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 297 |
3
|
public void visitLeave(final Location location) throws ModuleDataException {... |
| 298 |
3
|
checkContext(); |
| 299 |
|
} |
| 300 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 301 |
2
|
public void visitLeave(final LocationList locationList) throws ModuleDataException {... |
| 302 |
2
|
checkContext(); |
| 303 |
|
} |
| 304 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 305 |
90
|
public void visitLeave(final Node authorList) throws ModuleDataException {... |
| 306 |
90
|
checkContext(); |
| 307 |
|
} |
| 308 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 309 |
7
|
public void visitLeave(final PredicateDefinition predicateDefinition)... |
| 310 |
|
throws ModuleDataException { |
| 311 |
7
|
checkContext(); |
| 312 |
|
} |
| 313 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 314 |
18
|
public void visitLeave(final Proof proof) throws ModuleDataException {... |
| 315 |
18
|
checkContext(); |
| 316 |
|
} |
| 317 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 318 |
17
|
public void visitLeave(final ProofList proofList) throws ModuleDataException {... |
| 319 |
17
|
checkContext(); |
| 320 |
|
} |
| 321 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 322 |
54
|
public void visitLeave(final Proposition proposition) throws ModuleDataException {... |
| 323 |
54
|
checkContext(); |
| 324 |
|
} |
| 325 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 326 |
1
|
public void visitLeave(final Qedeq qedeq) throws ModuleDataException {... |
| 327 |
1
|
checkContext(); |
| 328 |
|
} |
| 329 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 330 |
1
|
public void visitLeave(final Rule rule) throws ModuleDataException {... |
| 331 |
1
|
checkContext(); |
| 332 |
|
} |
| 333 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 334 |
22
|
public void visitLeave(final Section section) throws ModuleDataException {... |
| 335 |
22
|
checkContext(); |
| 336 |
|
} |
| 337 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 338 |
5
|
public void visitLeave(final SectionList sectionList) throws ModuleDataException {... |
| 339 |
5
|
checkContext(); |
| 340 |
|
} |
| 341 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 342 |
2
|
public void visitLeave(final Specification specification) throws ModuleDataException {... |
| 343 |
2
|
checkContext(); |
| 344 |
|
} |
| 345 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 346 |
1
|
public void visitLeave(final Subsection subsection) throws ModuleDataException {... |
| 347 |
1
|
checkContext(); |
| 348 |
|
} |
| 349 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 350 |
14
|
public void visitLeave(final SubsectionList subsectionList) throws ModuleDataException {... |
| 351 |
14
|
checkContext(); |
| 352 |
|
} |
| 353 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 354 |
0
|
public void visitLeave(final SubsectionType subsectionType) throws ModuleDataException {... |
| 355 |
0
|
checkContext(); |
| 356 |
|
} |
| 357 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 358 |
16
|
public void visitLeave(final Term term) throws ModuleDataException {... |
| 359 |
16
|
checkContext(); |
| 360 |
|
} |
| 361 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 362 |
0
|
public void visitLeave(final UsedByList usedByList) throws ModuleDataException {... |
| 363 |
0
|
checkContext(); |
| 364 |
|
} |
| 365 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 366 |
20
|
public void visitLeave(final VariableList variableList) throws ModuleDataException {... |
| 367 |
20
|
checkContext(); |
| 368 |
|
} |
| 369 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 370 |
1224
|
public void visitLeave(final Atom atom) throws ModuleDataException {... |
| 371 |
1224
|
checkContext(); |
| 372 |
|
} |
| 373 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 374 |
1471
|
public void visitLeave(final ElementList list) throws ModuleDataException {... |
| 375 |
1471
|
checkContext(); |
| 376 |
|
} |
| 377 |
|
|
|
|
|
| 58.3% |
Uncovered Elements: 10 (24) |
Complexity: 7 |
Complexity Density: 0.39 |
|
| 378 |
7752
|
private void checkContext() throws ModuleDataException {... |
| 379 |
7752
|
final String context = traverser.getCurrentContext().getLocationWithinModule(); |
| 380 |
7752
|
try { |
| 381 |
7752
|
Trace.param(CLASS, "checkContext()", |
| 382 |
|
"context > ", context); |
| 383 |
7752
|
if (context.length() > 0) { |
| 384 |
7750
|
DynamicGetter.get(qedeq, context); |
| 385 |
|
} |
| 386 |
|
} catch (RuntimeException e) { |
| 387 |
0
|
System.err.println(context); |
| 388 |
0
|
throw e; |
| 389 |
|
} catch (IllegalAccessException e) { |
| 390 |
0
|
throw new RuntimeException(e); |
| 391 |
|
} catch (InvocationTargetException e) { |
| 392 |
0
|
throw new RuntimeException(e); |
| 393 |
|
} |
| 394 |
|
|
| 395 |
7752
|
SimpleXPath xpath = Context2SimpleXPath.getXPath(traverser.getCurrentContext(), qedeq); |
| 396 |
7752
|
Trace.param(CLASS, "checkContext()", |
| 397 |
|
"xpath < ", xpath); |
| 398 |
7752
|
final SourceArea find = XPathLocationParser.findSourceArea(moduleFile, |
| 399 |
|
xpath); |
| 400 |
7752
|
if (find.getStartPosition() == null) { |
| 401 |
0
|
System.out.println(traverser.getCurrentContext()); |
| 402 |
0
|
throw new RuntimeException("start not found: " + find + "\ncontext: " |
| 403 |
|
+ context); |
| 404 |
|
} |
| 405 |
7752
|
if (find.getEndPosition() == null) { |
| 406 |
0
|
System.out.println(traverser.getCurrentContext()); |
| 407 |
0
|
throw new RuntimeException("end not found: " + find + "\ncontext: " |
| 408 |
|
+ context); |
| 409 |
|
} |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
} |