(t *testing.T, graph string)
| 134 | } |
| 135 | |
| 136 | func failGraph(t *testing.T, graph string) { |
| 137 | _, err := ParseGraph(strings.Split(graph, "\n"), []string{"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"}) |
| 138 | assert.Error(t, err) |
| 139 | } |
| 140 | |
| 141 | func TestParseGraph_InvalidGraph(t *testing.T) { |
| 142 | failGraph(t, `this graph is a baddie`) |
no test coverage detected