MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / doMoveTest

Function doMoveTest

src/timeline/test/track_test.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61std::pair<JsonStore, JsonStore> doMoveTest(Track &t, int start, int count, int before) {
62 auto sit = std::next(t.item().begin(), start);
63 auto eit = std::next(sit, count);
64 auto dit = std::next(t.item().begin(), before);
65
66 auto changes = t.item().splice(dit, t.item().children(), sit, eit);
67 auto more = t.item().refresh();
68
69 return std::make_pair(more, changes);
70}
71
72#define TESTMOVE(...) \
73 t.item().undo(more); \

Callers 1

TESTFunction · 0.85

Calls 5

itemMethod · 0.80
refreshMethod · 0.80
beginMethod · 0.45
spliceMethod · 0.45
childrenMethod · 0.45

Tested by

no test coverage detected