(t *testing.T)
| 41 | } |
| 42 | |
| 43 | func TestComposeWithNodeAttributesAndZeroFlat(t *testing.T) { |
| 44 | g := baseGraph() |
| 45 | a, c := baseAttrsAndConfig() |
| 46 | |
| 47 | // Set NodeAttributes for Node 1. |
| 48 | a.Nodes[g.Nodes[0]] = &DotNodeAttributes{ |
| 49 | Shape: "folder", |
| 50 | Bold: true, |
| 51 | Peripheries: 2, |
| 52 | URL: "www.google.com", |
| 53 | Formatter: func(ni *NodeInfo) string { |
| 54 | return strings.ToUpper(ni.Name) |
| 55 | }, |
| 56 | } |
| 57 | |
| 58 | // Set Flat value to zero on Node 2. |
| 59 | g.Nodes[1].Flat = 0 |
| 60 | |
| 61 | var buf bytes.Buffer |
| 62 | ComposeDot(&buf, g, a, c) |
| 63 | |
| 64 | compareGraphs(t, buf.Bytes(), "compose2.dot") |
| 65 | } |
| 66 | |
| 67 | func TestComposeWithTagsAndResidualEdge(t *testing.T) { |
| 68 | g := baseGraph() |
nothing calls this directly
no test coverage detected
searching dependent graphs…