Graph testing - #1426
Conversation
Marsella8
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, 3 unresolved discussions
lib/utils/test/src/test_algorithms.cc line 111 at r1 (raw file):
} TEST_CASE("OpenMultiDiGraph") {
Was working on this part before you told me to focus on DiGraph, will leave it commented in case we ever need it for the future.
lib/utils/test/src/test_digraph.cc line 9 at r1 (raw file):
TEST_SUITE(FF_TEST_SUITE) { TEST_CASE_TEMPLATE("DiGraph implementations", T, AdjacencyDiGraph) {
Currently, all the node queries are passing, while all the edge ones are failing. Unsure if it's because the tests are actually failing or because I'm improperly using the edges.
lib/utils/test/src/test_digraph.cc line 34 at r1 (raw file):
std::unordered_set<Node>{n[0], n[2]}); std::unordered_set<DirectedEdge> queried_edges =
Fails, all the directed edges are inverted. I've seen that in the codebase for Edge declaration sometimes src comes before dst, while some other times it comes after (eg for MultiDiEdges), possibly linked to that?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## repo-refactor #1426 +/- ##
=================================================
- Coverage 41.32% 39.28% -2.05%
=================================================
Files 181 253 +72
Lines 5265 8859 +3594
Branches 271 324 +53
=================================================
+ Hits 2176 3480 +1304
- Misses 3089 5379 +2290
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Previously, Marsella8 wrote…
Yes, it's likely exactly that reason. I have a fix for that on the |
Marsella8
left a comment
There was a problem hiding this comment.
Reviewable status: 0 of 2 files reviewed, 3 unresolved discussions (waiting on @lockshaw)
lib/utils/test/src/test_digraph.cc line 34 at r1 (raw file):
Previously, lockshaw (Colin Unger) wrote…
Yes, it's likely exactly that reason. I have a fix for that on the
dataflow-graphbranch, will let you know when that's ready. If you'd like you can wait for that to merge (or at least be finished) before you continue with this
Got it thanks, will wait for your branch and in the meanwhile will work on the other tests.
Description of changes:
Related Issues:
Linked Issues:
utils/graphlibrary #1224Issues closed by this PR:
This change is