MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / roundTripViewState

Function roundTripViewState

pj_app/tests/layout_xml_test.cpp:582–588  ·  view source on GitHub ↗

write -> serialize -> reparse -> read, so the full XML pipeline (not just the in-memory DOM) is exercised.

Source from the content-addressed store, hash-verified

580// write -> serialize -> reparse -> read, so the full XML pipeline (not just the
581// in-memory DOM) is exercised.
582SourceTimelineViewState roundTripViewState(const SourceTimelineViewState& in) {
583 QDomDocument doc;
584 doc.appendChild(writeSourceTimelineViewState(doc, in));
585 QDomDocument reparsed;
586 EXPECT_TRUE(reparsed.setContent(doc.toByteArray(2)));
587 return readSourceTimelineViewState(reparsed.documentElement());
588}
589
590TEST(SourceTimelineViewState, AllFieldsRoundTrip) {
591 SourceTimelineViewState in;

Callers 1

TESTFunction · 0.85

Calls 2

Tested by

no test coverage detected