(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestParseGraph_SimpleGraph(t *testing.T) { |
| 11 | nodes := []string{"1", "2", "3", "4", "5"} |
| 12 | input := `1, 2 |
| 13 | 3, 4 |
| 14 | 1,3,5` |
| 15 | pairs, err := ParseGraph(strings.Split(input, "\n"), nodes) |
| 16 | assert.NoError(t, err) |
| 17 | assert.ElementsMatch(t, pairs, []Pair[NodeId, NodeId]{ |
| 18 | {"1", "2"}, |
| 19 | {"3", "4"}, |
| 20 | {"1", "3"}, |
| 21 | {"3", "5"}, |
| 22 | {"1", "5"}, |
| 23 | }) |
| 24 | } |
| 25 | |
| 26 | func TestParseGraph_Groups(t *testing.T) { |
| 27 | nodes := []string{"1", "2", "3", "4", "5", "6", "7"} |
nothing calls this directly
no test coverage detected