mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Rename NodeMetadata -> Node
This commit is contained in:
@@ -32,22 +32,22 @@ func TestMergeRenderableNodes(t *testing.T) {
|
||||
|
||||
func TestMergeRenderableNode(t *testing.T) {
|
||||
node1 := render.RenderableNode{
|
||||
ID: "foo",
|
||||
LabelMajor: "",
|
||||
LabelMinor: "minor",
|
||||
Rank: "",
|
||||
Pseudo: false,
|
||||
NodeMetadata: report.MakeNodeMetadata().WithAdjacent("a1"),
|
||||
Origins: report.MakeIDList("o1"),
|
||||
ID: "foo",
|
||||
LabelMajor: "",
|
||||
LabelMinor: "minor",
|
||||
Rank: "",
|
||||
Pseudo: false,
|
||||
Node: report.MakeNode().WithAdjacent("a1"),
|
||||
Origins: report.MakeIDList("o1"),
|
||||
}
|
||||
node2 := render.RenderableNode{
|
||||
ID: "foo",
|
||||
LabelMajor: "major",
|
||||
LabelMinor: "",
|
||||
Rank: "rank",
|
||||
Pseudo: false,
|
||||
NodeMetadata: report.MakeNodeMetadata().WithAdjacent("a2"),
|
||||
Origins: report.MakeIDList("o2"),
|
||||
ID: "foo",
|
||||
LabelMajor: "major",
|
||||
LabelMinor: "",
|
||||
Rank: "rank",
|
||||
Pseudo: false,
|
||||
Node: report.MakeNode().WithAdjacent("a2"),
|
||||
Origins: report.MakeIDList("o2"),
|
||||
}
|
||||
want := render.RenderableNode{
|
||||
ID: "foo",
|
||||
@@ -55,7 +55,7 @@ func TestMergeRenderableNode(t *testing.T) {
|
||||
LabelMinor: "minor",
|
||||
Rank: "rank",
|
||||
Pseudo: false,
|
||||
NodeMetadata: report.MakeNodeMetadata().WithAdjacency(report.MakeIDList("a1", "a2")),
|
||||
Node: report.MakeNode().WithAdjacency(report.MakeIDList("a1", "a2")),
|
||||
Origins: report.MakeIDList("o1", "o2"),
|
||||
EdgeMetadata: report.EdgeMetadata{},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user