(t *testing.T)
| 31 | var updateFlag = flag.Bool("update", false, "Update the golden files") |
| 32 | |
| 33 | func TestComposeWithStandardGraph(t *testing.T) { |
| 34 | g := baseGraph() |
| 35 | a, c := baseAttrsAndConfig() |
| 36 | |
| 37 | var buf bytes.Buffer |
| 38 | ComposeDot(&buf, g, a, c) |
| 39 | |
| 40 | compareGraphs(t, buf.Bytes(), "compose1.dot") |
| 41 | } |
| 42 | |
| 43 | func TestComposeWithNodeAttributesAndZeroFlat(t *testing.T) { |
| 44 | g := baseGraph() |
nothing calls this directly
no test coverage detected
searching dependent graphs…