Skip to content

Commit

Permalink
convering untested code path refs #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Mar 17, 2024
1 parent 0f8954e commit 64c4a14
Show file tree
Hide file tree
Showing 6 changed files with 893 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Warning: Unused state in tlLogic '-7', program '0' at tl-index 1
519 changes: 519 additions & 0 deletions tests/netconvert/function/keep_edges/by-speed/input_net.net.xml

Large diffs are not rendered by default.

328 changes: 328 additions & 0 deletions tests/netconvert/function/keep_edges/by-speed/net.netconvert

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--verbose --sumo-net-file input_net.net.xml --output net.net.xml
--keep-edges.min-speed 20
40 changes: 40 additions & 0 deletions tests/netconvert/function/keep_edges/by-speed/output.netconvert
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Parsing sumo-net from 'input_net.net.xml' ... done (6ms).
Import done:
9 nodes loaded.
12 edges loaded.
Removing self-loops ... done (0ms).
Removing empty nodes ... done (0ms).
1 nodes removed.
Computing turning directions ... done (0ms).
Assigning nodes to traffic lights ... done (0ms).
Sorting nodes' edges ... done (0ms).
Computing node shapes ... done (0ms).
Computing edge shapes ... done (0ms).
Computing node types ... done (0ms).
Computing priorities ... done (0ms).
Computing approached edges ... done (0ms).
Guessing and setting roundabouts ... done (0ms).
Computing approaching lanes ... done (1ms).
Dividing of lanes on approached lanes ... done (0ms).
Processing turnarounds ... done (0ms).
Rechecking of lane endings ... done (0ms).
Computing traffic light control information ... done (0ms).
Computing node logics ... done (0ms).
Computing traffic light logics ... done (0ms).
3 traffic light(s) computed.
Building inner edges ... done (0ms).
-----------------------------------------------------
Summary:
Node type statistics:
Unregulated junctions : 0
Priority junctions : 5
Right-before-left junctions : 0
Traffic light junctions : 3
Network boundaries:
Original boundary : 0.00,18.96,1048.06,921.35
Applied offset : 0.00,0.00
Converted boundary : 0.00,18.96,1048.06,921.35
-----------------------------------------------------
Writing network ...
done (1ms).
Success.
3 changes: 3 additions & 0 deletions tests/netconvert/function/keep_edges/testsuite.netconvert
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ by-vclass2

# Only keep edges with the given type and *all* that are named explicitly
by-type_and_explicit

# Only keep edges with speed above threshold
by-speed

0 comments on commit 64c4a14

Please sign in to comment.