MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / testHistory

Method testHistory

tests/testdiff.cpp:53–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void TestIDE::testHistory()
54{
55 History history("foo");
56 QSignalSpy spy(&history, &History::historyChanged);
57 history.addFile("test.mzn", "a\nb\nc\n");
58 history.updateFileContents("test.mzn", "a\nc\nd\n");
59 history.updateFileContents("test.mzn", "f\na\nc\ne\n");
60 history.commit();
61 QCOMPARE(spy.count(), 3);
62}

Callers

nothing calls this directly

Calls 4

addFileMethod · 0.80
updateFileContentsMethod · 0.80
commitMethod · 0.80
countMethod · 0.80

Tested by

no test coverage detected