Add tests for graph

This commit is contained in:
Julian Kornberger 2016-03-20 20:00:02 +01:00
parent b252274253
commit 150d9b3297
1 changed files with 19 additions and 0 deletions

19
models/graph_test.go Normal file
View File

@ -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
}