avl-tree-typed 1.40.0-rc → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/coverage/clover.xml +5 -2
- package/coverage/coverage-final.json +95 -1
- package/coverage/coverage-summary.json +59 -2
- package/coverage/lcov-report/base.css +294 -115
- package/coverage/lcov-report/block-navigation.js +68 -68
- package/coverage/lcov-report/index.html +108 -105
- package/coverage/lcov-report/index.ts.html +76 -76
- package/coverage/lcov-report/sorter.js +183 -173
- package/dist/data-structures/binary-tree/avl-tree.d.ts +106 -0
- package/dist/data-structures/binary-tree/avl-tree.js +347 -0
- package/dist/data-structures/binary-tree/binary-indexed-tree.d.ts +149 -0
- package/dist/data-structures/binary-tree/binary-indexed-tree.js +269 -0
- package/dist/data-structures/binary-tree/binary-tree.d.ts +363 -0
- package/dist/data-structures/binary-tree/binary-tree.js +1135 -0
- package/dist/data-structures/binary-tree/bst.d.ts +167 -0
- package/dist/data-structures/binary-tree/bst.js +512 -0
- package/dist/data-structures/binary-tree/index.d.ts +7 -0
- package/dist/data-structures/binary-tree/index.js +23 -0
- package/dist/data-structures/binary-tree/rb-tree.d.ts +97 -0
- package/dist/data-structures/binary-tree/rb-tree.js +388 -0
- package/dist/data-structures/binary-tree/segment-tree.d.ts +67 -0
- package/dist/data-structures/binary-tree/segment-tree.js +180 -0
- package/dist/data-structures/binary-tree/tree-multiset.d.ts +126 -0
- package/dist/data-structures/binary-tree/tree-multiset.js +355 -0
- package/dist/data-structures/graph/abstract-graph.d.ts +313 -0
- package/dist/data-structures/graph/abstract-graph.js +884 -0
- package/dist/data-structures/graph/directed-graph.d.ts +194 -0
- package/dist/data-structures/graph/directed-graph.js +404 -0
- package/dist/data-structures/graph/index.d.ts +4 -0
- package/dist/data-structures/graph/index.js +20 -0
- package/dist/data-structures/graph/map-graph.d.ts +73 -0
- package/dist/data-structures/graph/map-graph.js +93 -0
- package/dist/data-structures/graph/undirected-graph.d.ts +120 -0
- package/dist/data-structures/graph/undirected-graph.js +239 -0
- package/dist/data-structures/hash/coordinate-map.d.ts +44 -0
- package/dist/data-structures/hash/coordinate-map.js +62 -0
- package/dist/data-structures/hash/coordinate-set.d.ts +36 -0
- package/dist/data-structures/hash/coordinate-set.js +52 -0
- package/dist/data-structures/hash/hash-map.d.ts +50 -0
- package/dist/data-structures/hash/hash-map.js +153 -0
- package/dist/data-structures/hash/hash-table.d.ts +103 -0
- package/dist/data-structures/hash/hash-table.js +236 -0
- package/dist/data-structures/hash/index.d.ts +6 -0
- package/dist/data-structures/hash/index.js +22 -0
- package/dist/data-structures/hash/tree-map.d.ts +2 -0
- package/dist/data-structures/hash/tree-map.js +6 -0
- package/dist/data-structures/hash/tree-set.d.ts +2 -0
- package/dist/data-structures/hash/tree-set.js +6 -0
- package/dist/data-structures/heap/heap.d.ts +235 -0
- package/dist/data-structures/heap/heap.js +515 -0
- package/dist/data-structures/heap/index.d.ts +3 -0
- package/dist/data-structures/heap/index.js +19 -0
- package/dist/data-structures/heap/max-heap.d.ts +15 -0
- package/dist/data-structures/heap/max-heap.js +26 -0
- package/dist/data-structures/heap/min-heap.d.ts +15 -0
- package/dist/data-structures/heap/min-heap.js +26 -0
- package/dist/data-structures/index.d.ts +11 -0
- package/dist/data-structures/index.js +27 -0
- package/dist/data-structures/linked-list/doubly-linked-list.d.ts +253 -0
- package/dist/data-structures/linked-list/doubly-linked-list.js +569 -0
- package/dist/data-structures/linked-list/index.d.ts +3 -0
- package/dist/data-structures/linked-list/index.js +19 -0
- package/dist/data-structures/linked-list/singly-linked-list.d.ts +232 -0
- package/dist/data-structures/linked-list/singly-linked-list.js +533 -0
- package/dist/data-structures/linked-list/skip-linked-list.d.ts +80 -0
- package/dist/data-structures/linked-list/skip-linked-list.js +187 -0
- package/dist/data-structures/matrix/index.d.ts +4 -0
- package/dist/data-structures/matrix/index.js +20 -0
- package/dist/data-structures/matrix/matrix.d.ts +21 -0
- package/dist/data-structures/matrix/matrix.js +28 -0
- package/dist/data-structures/matrix/matrix2d.d.ts +107 -0
- package/dist/data-structures/matrix/matrix2d.js +199 -0
- package/dist/data-structures/matrix/navigator.d.ts +52 -0
- package/dist/data-structures/matrix/navigator.js +106 -0
- package/dist/data-structures/matrix/vector2d.d.ts +200 -0
- package/dist/data-structures/matrix/vector2d.js +290 -0
- package/dist/data-structures/priority-queue/index.d.ts +3 -0
- package/dist/data-structures/priority-queue/index.js +19 -0
- package/dist/data-structures/priority-queue/max-priority-queue.d.ts +15 -0
- package/dist/data-structures/priority-queue/max-priority-queue.js +26 -0
- package/dist/data-structures/priority-queue/min-priority-queue.d.ts +15 -0
- package/dist/data-structures/priority-queue/min-priority-queue.js +26 -0
- package/dist/data-structures/priority-queue/priority-queue.d.ts +15 -0
- package/dist/data-structures/priority-queue/priority-queue.js +17 -0
- package/dist/data-structures/queue/deque.d.ts +161 -0
- package/dist/data-structures/queue/deque.js +264 -0
- package/dist/data-structures/queue/index.d.ts +2 -0
- package/dist/data-structures/queue/index.js +18 -0
- package/dist/data-structures/queue/queue.d.ts +122 -0
- package/dist/data-structures/queue/queue.js +187 -0
- package/dist/data-structures/stack/index.d.ts +1 -0
- package/dist/data-structures/stack/index.js +17 -0
- package/dist/data-structures/stack/stack.d.ts +64 -0
- package/dist/data-structures/stack/stack.js +94 -0
- package/dist/data-structures/tree/index.d.ts +1 -0
- package/dist/data-structures/tree/index.js +17 -0
- package/dist/data-structures/tree/tree.d.ts +8 -0
- package/dist/data-structures/tree/tree.js +40 -0
- package/dist/data-structures/trie/index.d.ts +1 -0
- package/dist/data-structures/trie/index.js +17 -0
- package/dist/data-structures/trie/trie.d.ts +79 -0
- package/dist/data-structures/trie/trie.js +251 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +18 -4
- package/dist/interfaces/binary-tree.d.ts +7 -0
- package/dist/interfaces/binary-tree.js +2 -0
- package/dist/interfaces/doubly-linked-list.d.ts +1 -0
- package/dist/interfaces/doubly-linked-list.js +2 -0
- package/dist/interfaces/graph.d.ts +5 -0
- package/dist/interfaces/graph.js +2 -0
- package/dist/interfaces/heap.d.ts +1 -0
- package/dist/interfaces/heap.js +2 -0
- package/dist/interfaces/index.d.ts +8 -0
- package/dist/interfaces/index.js +24 -0
- package/dist/interfaces/navigator.d.ts +1 -0
- package/dist/interfaces/navigator.js +2 -0
- package/dist/interfaces/priority-queue.d.ts +1 -0
- package/dist/interfaces/priority-queue.js +2 -0
- package/dist/interfaces/segment-tree.d.ts +1 -0
- package/dist/interfaces/segment-tree.js +2 -0
- package/dist/interfaces/singly-linked-list.d.ts +1 -0
- package/dist/interfaces/singly-linked-list.js +2 -0
- package/dist/types/data-structures/binary-tree/avl-tree.d.ts +4 -0
- package/dist/types/data-structures/binary-tree/avl-tree.js +2 -0
- package/dist/types/data-structures/binary-tree/binary-indexed-tree.d.ts +1 -0
- package/dist/types/data-structures/binary-tree/binary-indexed-tree.js +2 -0
- package/dist/types/data-structures/binary-tree/binary-tree.d.ts +29 -0
- package/dist/types/data-structures/binary-tree/binary-tree.js +24 -0
- package/dist/types/data-structures/binary-tree/bst.d.ts +7 -0
- package/dist/types/data-structures/binary-tree/bst.js +2 -0
- package/dist/types/data-structures/binary-tree/index.d.ts +6 -0
- package/dist/types/data-structures/binary-tree/index.js +22 -0
- package/dist/types/data-structures/binary-tree/rb-tree.d.ts +4 -0
- package/dist/types/data-structures/binary-tree/rb-tree.js +13 -0
- package/dist/types/data-structures/binary-tree/segment-tree.d.ts +1 -0
- package/dist/types/data-structures/binary-tree/segment-tree.js +2 -0
- package/dist/types/data-structures/binary-tree/tree-multiset.d.ts +4 -0
- package/dist/types/data-structures/binary-tree/tree-multiset.js +2 -0
- package/dist/types/data-structures/graph/abstract-graph.d.ts +10 -0
- package/dist/types/data-structures/graph/abstract-graph.js +2 -0
- package/dist/types/data-structures/graph/directed-graph.d.ts +6 -0
- package/dist/types/data-structures/graph/directed-graph.js +9 -0
- package/dist/types/data-structures/graph/index.d.ts +3 -0
- package/dist/types/data-structures/graph/index.js +19 -0
- package/dist/types/data-structures/graph/map-graph.d.ts +1 -0
- package/dist/types/data-structures/graph/map-graph.js +2 -0
- package/dist/types/data-structures/graph/undirected-graph.d.ts +1 -0
- package/dist/types/data-structures/graph/undirected-graph.js +2 -0
- package/dist/types/data-structures/hash/coordinate-map.d.ts +1 -0
- package/dist/types/data-structures/hash/coordinate-map.js +2 -0
- package/dist/types/data-structures/hash/coordinate-set.d.ts +1 -0
- package/dist/types/data-structures/hash/coordinate-set.js +2 -0
- package/dist/types/data-structures/hash/hash-map.d.ts +1 -0
- package/dist/types/data-structures/hash/hash-map.js +2 -0
- package/dist/types/data-structures/hash/hash-table.d.ts +1 -0
- package/dist/types/data-structures/hash/hash-table.js +2 -0
- package/dist/types/data-structures/hash/index.d.ts +1 -0
- package/dist/types/data-structures/hash/index.js +2 -0
- package/dist/types/data-structures/hash/tree-map.d.ts +1 -0
- package/dist/types/data-structures/hash/tree-map.js +2 -0
- package/dist/types/data-structures/hash/tree-set.d.ts +1 -0
- package/dist/types/data-structures/hash/tree-set.js +2 -0
- package/dist/types/data-structures/heap/heap.d.ts +1 -0
- package/dist/types/data-structures/heap/heap.js +2 -0
- package/dist/types/data-structures/heap/index.d.ts +1 -0
- package/dist/types/data-structures/heap/index.js +17 -0
- package/dist/types/data-structures/heap/max-heap.d.ts +1 -0
- package/dist/types/data-structures/heap/max-heap.js +2 -0
- package/dist/types/data-structures/heap/min-heap.d.ts +1 -0
- package/dist/types/data-structures/heap/min-heap.js +2 -0
- package/dist/types/data-structures/index.d.ts +11 -0
- package/dist/types/data-structures/index.js +27 -0
- package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +1 -0
- package/dist/types/data-structures/linked-list/doubly-linked-list.js +2 -0
- package/dist/types/data-structures/linked-list/index.d.ts +2 -0
- package/dist/types/data-structures/linked-list/index.js +18 -0
- package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +1 -0
- package/dist/types/data-structures/linked-list/singly-linked-list.js +2 -0
- package/dist/types/data-structures/linked-list/skip-linked-list.d.ts +1 -0
- package/dist/types/data-structures/linked-list/skip-linked-list.js +2 -0
- package/dist/types/data-structures/matrix/index.d.ts +1 -0
- package/dist/types/data-structures/matrix/index.js +17 -0
- package/dist/types/data-structures/matrix/matrix.d.ts +1 -0
- package/dist/types/data-structures/matrix/matrix.js +2 -0
- package/dist/types/data-structures/matrix/matrix2d.d.ts +1 -0
- package/dist/types/data-structures/matrix/matrix2d.js +2 -0
- package/dist/types/data-structures/matrix/navigator.d.ts +14 -0
- package/dist/types/data-structures/matrix/navigator.js +2 -0
- package/dist/types/data-structures/matrix/vector2d.d.ts +1 -0
- package/dist/types/data-structures/matrix/vector2d.js +2 -0
- package/dist/types/data-structures/priority-queue/index.d.ts +3 -0
- package/dist/types/data-structures/priority-queue/index.js +19 -0
- package/dist/types/data-structures/priority-queue/max-priority-queue.d.ts +1 -0
- package/dist/types/data-structures/priority-queue/max-priority-queue.js +2 -0
- package/dist/types/data-structures/priority-queue/min-priority-queue.d.ts +1 -0
- package/dist/types/data-structures/priority-queue/min-priority-queue.js +2 -0
- package/dist/types/data-structures/priority-queue/priority-queue.d.ts +1 -0
- package/dist/types/data-structures/priority-queue/priority-queue.js +2 -0
- package/dist/types/data-structures/queue/deque.d.ts +1 -0
- package/dist/types/data-structures/queue/deque.js +2 -0
- package/dist/types/data-structures/queue/index.d.ts +2 -0
- package/dist/types/data-structures/queue/index.js +18 -0
- package/dist/types/data-structures/queue/queue.d.ts +1 -0
- package/dist/types/data-structures/queue/queue.js +2 -0
- package/dist/types/data-structures/stack/index.d.ts +1 -0
- package/dist/types/data-structures/stack/index.js +17 -0
- package/dist/types/data-structures/stack/stack.d.ts +1 -0
- package/dist/types/data-structures/stack/stack.js +2 -0
- package/dist/types/data-structures/tree/index.d.ts +1 -0
- package/dist/types/data-structures/tree/index.js +17 -0
- package/dist/types/data-structures/tree/tree.d.ts +1 -0
- package/dist/types/data-structures/tree/tree.js +2 -0
- package/dist/types/data-structures/trie/index.d.ts +1 -0
- package/dist/types/data-structures/trie/index.js +17 -0
- package/dist/types/data-structures/trie/trie.d.ts +1 -0
- package/dist/types/data-structures/trie/trie.js +2 -0
- package/dist/types/helpers.d.ts +8 -0
- package/dist/types/helpers.js +9 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +19 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/index.js +18 -0
- package/dist/types/utils/utils.d.ts +7 -0
- package/dist/types/utils/utils.js +2 -0
- package/dist/types/utils/validate-type.d.ts +19 -0
- package/dist/types/utils/validate-type.js +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -0
- package/dist/utils/utils.d.ts +20 -0
- package/dist/utils/utils.js +73 -0
- package/package.json +2 -2
- package/src/data-structures/binary-tree/avl-tree.ts +350 -0
- package/src/data-structures/binary-tree/binary-indexed-tree.ts +306 -0
- package/src/data-structures/binary-tree/binary-tree.ts +1284 -0
- package/src/data-structures/binary-tree/bst.ts +522 -0
- package/src/data-structures/binary-tree/index.ts +7 -0
- package/src/data-structures/binary-tree/rb-tree.ts +426 -0
- package/src/data-structures/binary-tree/segment-tree.ts +190 -0
- package/src/data-structures/binary-tree/tree-multiset.ts +379 -0
- package/src/data-structures/graph/abstract-graph.ts +1000 -0
- package/src/data-structures/graph/directed-graph.ts +449 -0
- package/src/data-structures/graph/index.ts +4 -0
- package/src/data-structures/graph/map-graph.ts +106 -0
- package/src/data-structures/graph/undirected-graph.ts +259 -0
- package/src/data-structures/hash/coordinate-map.ts +63 -0
- package/src/data-structures/hash/coordinate-set.ts +52 -0
- package/src/data-structures/hash/hash-map.ts +185 -0
- package/src/data-structures/hash/hash-table.ts +268 -0
- package/src/data-structures/hash/index.ts +6 -0
- package/src/data-structures/hash/tree-map.ts +2 -0
- package/src/data-structures/hash/tree-set.ts +2 -0
- package/src/data-structures/heap/heap.ts +589 -0
- package/src/data-structures/heap/index.ts +3 -0
- package/src/data-structures/heap/max-heap.ts +26 -0
- package/src/data-structures/heap/min-heap.ts +26 -0
- package/src/data-structures/index.ts +11 -0
- package/src/data-structures/linked-list/doubly-linked-list.ts +605 -0
- package/src/data-structures/linked-list/index.ts +3 -0
- package/src/data-structures/linked-list/singly-linked-list.ts +576 -0
- package/src/data-structures/linked-list/skip-linked-list.ts +221 -0
- package/src/data-structures/matrix/index.ts +4 -0
- package/src/data-structures/matrix/matrix.ts +27 -0
- package/src/data-structures/matrix/matrix2d.ts +211 -0
- package/src/data-structures/matrix/navigator.ts +121 -0
- package/src/data-structures/matrix/vector2d.ts +315 -0
- package/src/data-structures/priority-queue/index.ts +3 -0
- package/src/data-structures/priority-queue/max-priority-queue.ts +25 -0
- package/src/data-structures/priority-queue/min-priority-queue.ts +25 -0
- package/src/data-structures/priority-queue/priority-queue.ts +16 -0
- package/src/data-structures/queue/deque.ts +282 -0
- package/src/data-structures/queue/index.ts +2 -0
- package/src/data-structures/queue/queue.ts +209 -0
- package/src/data-structures/stack/index.ts +1 -0
- package/src/data-structures/stack/stack.ts +102 -0
- package/src/data-structures/tree/index.ts +1 -0
- package/src/data-structures/tree/tree.ts +41 -0
- package/src/data-structures/trie/index.ts +1 -0
- package/src/data-structures/trie/trie.ts +262 -0
- package/src/index.ts +4 -1
- package/src/interfaces/binary-tree.ts +10 -0
- package/src/interfaces/doubly-linked-list.ts +1 -0
- package/src/interfaces/graph.ts +7 -0
- package/src/interfaces/heap.ts +1 -0
- package/src/interfaces/index.ts +8 -0
- package/src/interfaces/navigator.ts +1 -0
- package/src/interfaces/priority-queue.ts +1 -0
- package/src/interfaces/segment-tree.ts +1 -0
- package/src/interfaces/singly-linked-list.ts +1 -0
- package/src/types/data-structures/binary-tree/avl-tree.ts +5 -0
- package/src/types/data-structures/binary-tree/binary-indexed-tree.ts +1 -0
- package/src/types/data-structures/binary-tree/binary-tree.ts +31 -0
- package/src/types/data-structures/binary-tree/bst.ts +11 -0
- package/src/types/data-structures/binary-tree/index.ts +6 -0
- package/src/types/data-structures/binary-tree/rb-tree.ts +8 -0
- package/src/types/data-structures/binary-tree/segment-tree.ts +1 -0
- package/src/types/data-structures/binary-tree/tree-multiset.ts +6 -0
- package/src/types/data-structures/graph/abstract-graph.ts +11 -0
- package/src/types/data-structures/graph/directed-graph.ts +8 -0
- package/src/types/data-structures/graph/index.ts +3 -0
- package/src/types/data-structures/graph/map-graph.ts +1 -0
- package/src/types/data-structures/graph/undirected-graph.ts +1 -0
- package/src/types/data-structures/hash/coordinate-map.ts +1 -0
- package/src/types/data-structures/hash/coordinate-set.ts +1 -0
- package/src/types/data-structures/hash/hash-map.ts +1 -0
- package/src/types/data-structures/hash/hash-table.ts +1 -0
- package/src/types/data-structures/hash/index.ts +1 -0
- package/src/types/data-structures/hash/tree-map.ts +1 -0
- package/src/types/data-structures/hash/tree-set.ts +1 -0
- package/src/types/data-structures/heap/heap.ts +1 -0
- package/src/types/data-structures/heap/index.ts +1 -0
- package/src/types/data-structures/heap/max-heap.ts +1 -0
- package/src/types/data-structures/heap/min-heap.ts +1 -0
- package/src/types/data-structures/index.ts +11 -0
- package/src/types/data-structures/linked-list/doubly-linked-list.ts +1 -0
- package/src/types/data-structures/linked-list/index.ts +2 -0
- package/src/types/data-structures/linked-list/singly-linked-list.ts +1 -0
- package/src/types/data-structures/linked-list/skip-linked-list.ts +1 -0
- package/src/types/data-structures/matrix/index.ts +1 -0
- package/src/types/data-structures/matrix/matrix.ts +1 -0
- package/src/types/data-structures/matrix/matrix2d.ts +1 -0
- package/src/types/data-structures/matrix/navigator.ts +14 -0
- package/src/types/data-structures/matrix/vector2d.ts +1 -0
- package/src/types/data-structures/priority-queue/index.ts +3 -0
- package/src/types/data-structures/priority-queue/max-priority-queue.ts +1 -0
- package/src/types/data-structures/priority-queue/min-priority-queue.ts +1 -0
- package/src/types/data-structures/priority-queue/priority-queue.ts +1 -0
- package/src/types/data-structures/queue/deque.ts +1 -0
- package/src/types/data-structures/queue/index.ts +2 -0
- package/src/types/data-structures/queue/queue.ts +1 -0
- package/src/types/data-structures/stack/index.ts +1 -0
- package/src/types/data-structures/stack/stack.ts +1 -0
- package/src/types/data-structures/tree/index.ts +1 -0
- package/src/types/data-structures/tree/tree.ts +1 -0
- package/src/types/data-structures/trie/index.ts +1 -0
- package/src/types/data-structures/trie/trie.ts +1 -0
- package/src/types/helpers.ts +11 -0
- package/src/types/index.ts +3 -0
- package/src/types/utils/index.ts +2 -0
- package/src/types/utils/utils.ts +6 -0
- package/src/types/utils/validate-type.ts +35 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/utils.ts +86 -0
- package/test/index.test.ts +78 -78
- package/tsconfig.json +1 -2
|
@@ -1,59 +1,127 @@
|
|
|
1
1
|
body, html {
|
|
2
|
-
margin:
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
3
4
|
height: 100%;
|
|
4
5
|
}
|
|
6
|
+
|
|
5
7
|
body {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
font-family: Helvetica Neue, Helvetica, Arial;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
color: #333;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.small {
|
|
14
|
+
font-size: 12px;
|
|
9
15
|
}
|
|
10
|
-
|
|
16
|
+
|
|
11
17
|
*, *:after, *:before {
|
|
12
|
-
-webkit-box-sizing:border-box;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
-webkit-box-sizing: border-box;
|
|
19
|
+
-moz-box-sizing: border-box;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
h1 {
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
margin: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
h2 {
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
18
32
|
pre {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
a
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
-moz-tab-size: 2;
|
|
37
|
+
-o-tab-size: 2;
|
|
38
|
+
tab-size: 2;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
a {
|
|
42
|
+
color: #0074D9;
|
|
43
|
+
text-decoration: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
a:hover {
|
|
47
|
+
text-decoration: underline;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.strong {
|
|
51
|
+
font-weight: bold;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.space-top1 {
|
|
55
|
+
padding: 10px 0 0 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pad2y {
|
|
59
|
+
padding: 20px 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pad1y {
|
|
63
|
+
padding: 10px 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pad2x {
|
|
67
|
+
padding: 0 20px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.pad2 {
|
|
71
|
+
padding: 20px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.pad1 {
|
|
75
|
+
padding: 10px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.space-left2 {
|
|
79
|
+
padding-left: 55px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.space-right2 {
|
|
83
|
+
padding-right: 20px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.center {
|
|
87
|
+
text-align: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.clearfix {
|
|
91
|
+
display: block;
|
|
92
|
+
}
|
|
93
|
+
|
|
39
94
|
.clearfix:after {
|
|
40
|
-
content:'';
|
|
41
|
-
display:block;
|
|
42
|
-
height:0;
|
|
43
|
-
clear:both;
|
|
44
|
-
visibility:hidden;
|
|
95
|
+
content: '';
|
|
96
|
+
display: block;
|
|
97
|
+
height: 0;
|
|
98
|
+
clear: both;
|
|
99
|
+
visibility: hidden;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.fl {
|
|
103
|
+
float: left;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@media only screen and (max-width: 640px) {
|
|
107
|
+
.col3 {
|
|
108
|
+
width: 100%;
|
|
109
|
+
max-width: 100%;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.hide-mobile {
|
|
113
|
+
display: none !important;
|
|
45
114
|
}
|
|
46
|
-
.fl { float: left; }
|
|
47
|
-
@media only screen and (max-width:640px) {
|
|
48
|
-
.col3 { width:100%; max-width:100%; }
|
|
49
|
-
.hide-mobile { display:none!important; }
|
|
50
115
|
}
|
|
51
116
|
|
|
52
117
|
.quiet {
|
|
53
118
|
color: #7f7f7f;
|
|
54
|
-
color: rgba(0,0,0,0.5);
|
|
119
|
+
color: rgba(0, 0, 0, 0.5);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.quiet a {
|
|
123
|
+
opacity: 0.7;
|
|
55
124
|
}
|
|
56
|
-
.quiet a { opacity: 0.7; }
|
|
57
125
|
|
|
58
126
|
.fraction {
|
|
59
127
|
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
@@ -65,7 +133,10 @@ a:hover { text-decoration:underline; }
|
|
|
65
133
|
vertical-align: middle;
|
|
66
134
|
}
|
|
67
135
|
|
|
68
|
-
div.path a:link, div.path a:visited {
|
|
136
|
+
div.path a:link, div.path a:visited {
|
|
137
|
+
color: #333;
|
|
138
|
+
}
|
|
139
|
+
|
|
69
140
|
table.coverage {
|
|
70
141
|
border-collapse: collapse;
|
|
71
142
|
margin: 10px 0 0 0;
|
|
@@ -77,141 +148,248 @@ table.coverage td {
|
|
|
77
148
|
padding: 0;
|
|
78
149
|
vertical-align: top;
|
|
79
150
|
}
|
|
151
|
+
|
|
80
152
|
table.coverage td.line-count {
|
|
81
|
-
|
|
82
|
-
|
|
153
|
+
text-align: right;
|
|
154
|
+
padding: 0 5px 0 20px;
|
|
83
155
|
}
|
|
156
|
+
|
|
84
157
|
table.coverage td.line-coverage {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
158
|
+
text-align: right;
|
|
159
|
+
padding-right: 10px;
|
|
160
|
+
min-width: 20px;
|
|
88
161
|
}
|
|
89
162
|
|
|
90
163
|
table.coverage td span.cline-any {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
164
|
+
display: inline-block;
|
|
165
|
+
padding: 0 5px;
|
|
166
|
+
width: 100%;
|
|
94
167
|
}
|
|
168
|
+
|
|
95
169
|
.missing-if-branch {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
170
|
+
display: inline-block;
|
|
171
|
+
margin-right: 5px;
|
|
172
|
+
border-radius: 3px;
|
|
173
|
+
position: relative;
|
|
174
|
+
padding: 0 4px;
|
|
175
|
+
background: #333;
|
|
176
|
+
color: yellow;
|
|
103
177
|
}
|
|
104
178
|
|
|
105
179
|
.skip-if-branch {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
180
|
+
display: none;
|
|
181
|
+
margin-right: 10px;
|
|
182
|
+
position: relative;
|
|
183
|
+
padding: 0 4px;
|
|
184
|
+
background: #ccc;
|
|
185
|
+
color: white;
|
|
112
186
|
}
|
|
187
|
+
|
|
113
188
|
.missing-if-branch .typ, .skip-if-branch .typ {
|
|
114
|
-
|
|
189
|
+
color: inherit !important;
|
|
115
190
|
}
|
|
191
|
+
|
|
116
192
|
.coverage-summary {
|
|
117
193
|
border-collapse: collapse;
|
|
118
194
|
width: 100%;
|
|
119
195
|
}
|
|
120
|
-
|
|
121
|
-
.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.
|
|
196
|
+
|
|
197
|
+
.coverage-summary tr {
|
|
198
|
+
border-bottom: 1px solid #bbb;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.keyline-all {
|
|
202
|
+
border: 1px solid #ddd;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.coverage-summary td, .coverage-summary th {
|
|
206
|
+
padding: 10px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.coverage-summary tbody {
|
|
210
|
+
border: 1px solid #bbb;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.coverage-summary td {
|
|
214
|
+
border-right: 1px solid #bbb;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.coverage-summary td:last-child {
|
|
218
|
+
border-right: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
126
221
|
.coverage-summary th {
|
|
127
222
|
text-align: left;
|
|
128
223
|
font-weight: normal;
|
|
129
224
|
white-space: nowrap;
|
|
130
225
|
}
|
|
131
|
-
|
|
132
|
-
.coverage-summary th.
|
|
226
|
+
|
|
227
|
+
.coverage-summary th.file {
|
|
228
|
+
border-right: none !important;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.coverage-summary th.pct {
|
|
232
|
+
}
|
|
233
|
+
|
|
133
234
|
.coverage-summary th.pic,
|
|
134
235
|
.coverage-summary th.abs,
|
|
135
236
|
.coverage-summary td.pct,
|
|
136
|
-
.coverage-summary td.abs {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
237
|
+
.coverage-summary td.abs {
|
|
238
|
+
text-align: right;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.coverage-summary td.file {
|
|
242
|
+
white-space: nowrap;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.coverage-summary td.pic {
|
|
246
|
+
min-width: 120px !important;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.coverage-summary tfoot td {
|
|
250
|
+
}
|
|
140
251
|
|
|
141
252
|
.coverage-summary .sorter {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
253
|
+
height: 10px;
|
|
254
|
+
width: 7px;
|
|
255
|
+
display: inline-block;
|
|
256
|
+
margin-left: 0.5em;
|
|
257
|
+
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
147
258
|
}
|
|
259
|
+
|
|
148
260
|
.coverage-summary .sorted .sorter {
|
|
149
|
-
|
|
261
|
+
background-position: 0 -20px;
|
|
150
262
|
}
|
|
263
|
+
|
|
151
264
|
.coverage-summary .sorted-desc .sorter {
|
|
152
|
-
|
|
265
|
+
background-position: 0 -10px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.status-line {
|
|
269
|
+
height: 10px;
|
|
153
270
|
}
|
|
154
|
-
|
|
271
|
+
|
|
155
272
|
/* yellow */
|
|
156
|
-
.cbranch-no {
|
|
273
|
+
.cbranch-no {
|
|
274
|
+
background: yellow !important;
|
|
275
|
+
color: #111;
|
|
276
|
+
}
|
|
277
|
+
|
|
157
278
|
/* dark red */
|
|
158
|
-
.red.solid, .status-line.low, .low .cover-fill {
|
|
159
|
-
|
|
279
|
+
.red.solid, .status-line.low, .low .cover-fill {
|
|
280
|
+
background: #C21F39
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.low .chart {
|
|
284
|
+
border: 1px solid #C21F39
|
|
285
|
+
}
|
|
286
|
+
|
|
160
287
|
.highlighted,
|
|
161
|
-
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
|
|
288
|
+
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no {
|
|
162
289
|
background: #C21F39 !important;
|
|
163
290
|
}
|
|
291
|
+
|
|
164
292
|
/* medium red */
|
|
165
|
-
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no {
|
|
293
|
+
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no {
|
|
294
|
+
background: #F6C6CE
|
|
295
|
+
}
|
|
296
|
+
|
|
166
297
|
/* light red */
|
|
167
|
-
.low, .cline-no {
|
|
298
|
+
.low, .cline-no {
|
|
299
|
+
background: #FCE1E5
|
|
300
|
+
}
|
|
301
|
+
|
|
168
302
|
/* light green */
|
|
169
|
-
.high, .cline-yes {
|
|
303
|
+
.high, .cline-yes {
|
|
304
|
+
background: rgb(230, 245, 208)
|
|
305
|
+
}
|
|
306
|
+
|
|
170
307
|
/* medium green */
|
|
171
|
-
.cstat-yes {
|
|
308
|
+
.cstat-yes {
|
|
309
|
+
background: rgb(161, 215, 106)
|
|
310
|
+
}
|
|
311
|
+
|
|
172
312
|
/* dark green */
|
|
173
|
-
.status-line.high, .high .cover-fill {
|
|
174
|
-
|
|
313
|
+
.status-line.high, .high .cover-fill {
|
|
314
|
+
background: rgb(77, 146, 33)
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.high .chart {
|
|
318
|
+
border: 1px solid rgb(77, 146, 33)
|
|
319
|
+
}
|
|
320
|
+
|
|
175
321
|
/* dark yellow (gold) */
|
|
176
|
-
.status-line.medium, .medium .cover-fill {
|
|
177
|
-
|
|
322
|
+
.status-line.medium, .medium .cover-fill {
|
|
323
|
+
background: #f9cd0b;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.medium .chart {
|
|
327
|
+
border: 1px solid #f9cd0b;
|
|
328
|
+
}
|
|
329
|
+
|
|
178
330
|
/* light yellow */
|
|
179
|
-
.medium {
|
|
331
|
+
.medium {
|
|
332
|
+
background: #fff4c2;
|
|
333
|
+
}
|
|
180
334
|
|
|
181
|
-
.cstat-skip {
|
|
182
|
-
|
|
183
|
-
|
|
335
|
+
.cstat-skip {
|
|
336
|
+
background: #ddd;
|
|
337
|
+
color: #111;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.fstat-skip {
|
|
341
|
+
background: #ddd;
|
|
342
|
+
color: #111 !important;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.cbranch-skip {
|
|
346
|
+
background: #ddd !important;
|
|
347
|
+
color: #111;
|
|
348
|
+
}
|
|
184
349
|
|
|
185
|
-
span.cline-neutral {
|
|
350
|
+
span.cline-neutral {
|
|
351
|
+
background: #eaeaea;
|
|
352
|
+
}
|
|
186
353
|
|
|
187
354
|
.coverage-summary td.empty {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
355
|
+
opacity: .5;
|
|
356
|
+
padding-top: 4px;
|
|
357
|
+
padding-bottom: 4px;
|
|
358
|
+
line-height: 1;
|
|
359
|
+
color: #888;
|
|
193
360
|
}
|
|
194
361
|
|
|
195
362
|
.cover-fill, .cover-empty {
|
|
196
|
-
display:inline-block;
|
|
363
|
+
display: inline-block;
|
|
197
364
|
height: 12px;
|
|
198
365
|
}
|
|
366
|
+
|
|
199
367
|
.chart {
|
|
200
368
|
line-height: 0;
|
|
201
369
|
}
|
|
370
|
+
|
|
202
371
|
.cover-empty {
|
|
203
|
-
|
|
372
|
+
background: white;
|
|
204
373
|
}
|
|
374
|
+
|
|
205
375
|
.cover-full {
|
|
206
|
-
|
|
376
|
+
border-right: none !important;
|
|
207
377
|
}
|
|
378
|
+
|
|
208
379
|
pre.prettyprint {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
380
|
+
border: none !important;
|
|
381
|
+
padding: 0 !important;
|
|
382
|
+
margin: 0 !important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.com {
|
|
386
|
+
color: #999 !important;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.ignore-none {
|
|
390
|
+
color: #999;
|
|
391
|
+
font-weight: normal;
|
|
212
392
|
}
|
|
213
|
-
.com { color: #999 !important; }
|
|
214
|
-
.ignore-none { color: #999; font-weight: normal; }
|
|
215
393
|
|
|
216
394
|
.wrapper {
|
|
217
395
|
min-height: 100%;
|
|
@@ -219,6 +397,7 @@ pre.prettyprint {
|
|
|
219
397
|
height: 100%;
|
|
220
398
|
margin: 0 auto -48px;
|
|
221
399
|
}
|
|
400
|
+
|
|
222
401
|
.footer, .push {
|
|
223
402
|
height: 48px;
|
|
224
403
|
}
|
|
@@ -1,87 +1,87 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
var jumpToCode = (function init() {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ['td.pct.low'];
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
// We don't want to select elements that are direct descendants of another match
|
|
10
|
+
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
// Selecter that finds elements on the page to which we can jump
|
|
13
|
+
var selector =
|
|
14
|
+
fileListingElements.join(', ') +
|
|
15
|
+
', ' +
|
|
16
|
+
notSelector +
|
|
17
|
+
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
// The NodeList of matching elements
|
|
20
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
var currentIndex;
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function makeCurrent(index) {
|
|
32
|
-
toggleClass(index);
|
|
33
|
-
currentIndex = index;
|
|
34
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
-
behavior: 'smooth',
|
|
36
|
-
block: 'center',
|
|
37
|
-
inline: 'center'
|
|
38
|
-
});
|
|
39
|
-
}
|
|
24
|
+
function toggleClass(index) {
|
|
25
|
+
missingCoverageElements
|
|
26
|
+
.item(currentIndex)
|
|
27
|
+
.classList.remove('highlighted');
|
|
28
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
+
}
|
|
40
30
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
31
|
+
function makeCurrent(index) {
|
|
32
|
+
toggleClass(index);
|
|
33
|
+
currentIndex = index;
|
|
34
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
+
behavior: 'smooth',
|
|
36
|
+
block: 'center',
|
|
37
|
+
inline: 'center'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
48
40
|
|
|
49
|
-
|
|
41
|
+
function goToPrevious() {
|
|
42
|
+
var nextIndex = 0;
|
|
43
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
+
} else if (missingCoverageElements.length > 1) {
|
|
46
|
+
nextIndex = currentIndex - 1;
|
|
50
47
|
}
|
|
51
48
|
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
makeCurrent(nextIndex);
|
|
50
|
+
}
|
|
54
51
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
currentIndex < missingCoverageElements.length - 1
|
|
58
|
-
) {
|
|
59
|
-
nextIndex = currentIndex + 1;
|
|
60
|
-
}
|
|
52
|
+
function goToNext() {
|
|
53
|
+
var nextIndex = 0;
|
|
61
54
|
|
|
62
|
-
|
|
55
|
+
if (
|
|
56
|
+
typeof currentIndex === 'number' &&
|
|
57
|
+
currentIndex < missingCoverageElements.length - 1
|
|
58
|
+
) {
|
|
59
|
+
nextIndex = currentIndex + 1;
|
|
63
60
|
}
|
|
64
61
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
-
document.activeElement != null
|
|
69
|
-
) {
|
|
70
|
-
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
62
|
+
makeCurrent(nextIndex);
|
|
63
|
+
}
|
|
73
64
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
65
|
+
return function jump(event) {
|
|
66
|
+
if (
|
|
67
|
+
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
+
document.activeElement != null
|
|
69
|
+
) {
|
|
70
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
switch (event.which) {
|
|
75
|
+
case 78: // n
|
|
76
|
+
case 74: // j
|
|
77
|
+
goToNext();
|
|
78
|
+
break;
|
|
79
|
+
case 66: // b
|
|
80
|
+
case 75: // k
|
|
81
|
+
case 80: // p
|
|
82
|
+
goToPrevious();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
86
|
})();
|
|
87
87
|
window.addEventListener('keydown', jumpToCode);
|