(root, path, opt_message)
| 33 | |
| 34 | |
| 35 | function assertPathExists(root, path, opt_message) { |
| 36 | var message = opt_message ? ' (' + opt_message + ')' : ''; |
| 37 | assertNotNull(root.descendToChild(path, function(node, pos) { |
| 38 | assertNotNull(node, |
| 39 | stackToString(path.slice(0, pos)) + ' has no child ' + |
| 40 | path[pos] + message); |
| 41 | }), opt_message); |
| 42 | }; |
| 43 | |
| 44 | |
| 45 | function assertNoPathExists(root, path, opt_message) { |
no test coverage detected
searching dependent graphs…