(t *testing.T)
| 139 | } |
| 140 | |
| 141 | func TestComposeWithNamesThatNeedEscaping(t *testing.T) { |
| 142 | g := baseGraph() |
| 143 | a, c := baseAttrsAndConfig() |
| 144 | g.Nodes[0].Info = NodeInfo{Name: `var"src"`} |
| 145 | g.Nodes[1].Info = NodeInfo{Name: `var"#dest#"`} |
| 146 | |
| 147 | var buf bytes.Buffer |
| 148 | ComposeDot(&buf, g, a, c) |
| 149 | |
| 150 | compareGraphs(t, buf.Bytes(), "compose7.dot") |
| 151 | } |
| 152 | |
| 153 | func TestComposeWithCommentsWithNewlines(t *testing.T) { |
| 154 | g := baseGraph() |
nothing calls this directly
no test coverage detected
searching dependent graphs…