(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestParseGraph_SymbolError(t *testing.T) { |
| 71 | nodes := []string{"1"} |
| 72 | input := `a = 1 |
| 73 | b = 2` |
| 74 | _, err := ParseGraph(strings.Split(input, "\n"), nodes) |
| 75 | assert.ErrorContains(t, err, "2 is not a valid node/group") |
| 76 | } |
| 77 | |
| 78 | func TestParseGraph_EmptyGroup(t *testing.T) { |
| 79 | nodes := []string{"1"} |
nothing calls this directly
no test coverage detected