(b *testing.B)
| 78 | } |
| 79 | |
| 80 | func BenchmarkNodeUnmarshalJSON(b *testing.B) { |
| 81 | parent := testNodeTree() |
| 82 | var buf bytes.Buffer |
| 83 | assert.NoError(b, jsonx.Write(&parent, &buf)) |
| 84 | bs := buf.Bytes() |
| 85 | for range b.N { |
| 86 | testload := testdata.NewNodeEmbed() |
| 87 | assert.NoError(b, jsonx.Read(&testload, bytes.NewReader(bs))) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | /* TODO: add back tree xml support |
| 92 | func TestNodeXML(t *testing.T) { |
nothing calls this directly
no test coverage detected