yanic/models/graph_test.go
2016-03-20 20:00:02 +01:00

20 lines
279 B
Go

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
}