Remove some duplicate functionality, add some basic tests.

This commit is contained in:
Tom Wilkie
2015-09-23 09:46:11 +00:00
parent d8a3372b2b
commit f9815afad3
6 changed files with 59 additions and 37 deletions

View File

@@ -54,7 +54,7 @@ func TestMergeRenderableNode(t *testing.T) {
LabelMinor: "minor",
Rank: "rank",
Pseudo: false,
Node: report.MakeNode().WithAdjacency(report.MakeIDList("a1", "a2")),
Node: report.MakeNode().WithAdjacent("a1").WithAdjacent("a2"),
Origins: report.MakeIDList("o1", "o2"),
EdgeMetadata: report.EdgeMetadata{},
}