From 150d9b3297509189f7cac7531a62dfc4df489202 Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Sun, 20 Mar 2016 20:00:02 +0100 Subject: [PATCH] Add tests for graph --- models/graph_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 models/graph_test.go diff --git a/models/graph_test.go b/models/graph_test.go new file mode 100644 index 0000000..4c03932 --- /dev/null +++ b/models/graph_test.go @@ -0,0 +1,19 @@ +package models + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestGenerateGraph(t *testing.T) { + assert := assert.New(t) + + nodes := &Nodes{ + List: make(map[string]*Node), + } + + graph := nodes.BuildGraph() + assert.NotNil(graph) + // TODO more tests required +}