(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestOperationLifetime(t *testing.T) { |
| 41 | // Ensure that the Graph is not garbage collected while the program |
| 42 | // still has access to the Operation. |
| 43 | op, err := createGraphAndOp() |
| 44 | if err != nil { |
| 45 | t.Fatal(err) |
| 46 | } |
| 47 | forceGC() |
| 48 | if got, want := op.Name(), "my_placeholder"; got != want { |
| 49 | t.Errorf("Got '%s', want '%s'", got, want) |
| 50 | } |
| 51 | if got, want := op.Type(), "Placeholder"; got != want { |
| 52 | t.Errorf("Got '%s', want '%s'", got, want) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func TestOperationOutputListSize(t *testing.T) { |
| 57 | graph := NewGraph() |
nothing calls this directly
no test coverage detected