Add tests for graph
This commit is contained in:
parent
b252274253
commit
150d9b3297
|
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue