(t *testing.T, expected string, sg *SubGraph)
| 41 | } |
| 42 | |
| 43 | func assertJSON(t *testing.T, expected string, sg *SubGraph) { |
| 44 | buf, err := ToJson(context.Background(), &Latency{}, []*SubGraph{sg}, nil) |
| 45 | require.NoError(t, err) |
| 46 | require.Equal(t, expected, string(buf)) |
| 47 | } |
| 48 | |
| 49 | func TestSubgraphToFastJSON(t *testing.T) { |
| 50 | t.Run("With a string result", func(t *testing.T) { |
no test coverage detected