MCPcopy Create free account
hub / github.com/KDE/kdevelop / validateImport

Method validateImport

plugins/subversion/tests/test_svnimport.cpp:139–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void TestSvnImport::validateImport( const QString& repourl, QTemporaryDir& checkoutdir, const QString& origcontent )
140{
141 VcsLocation reposLoc;
142 reposLoc.setRepositoryServer( repourl );
143 VcsJob* job = vcs->createWorkingCopy( reposLoc, QUrl::fromLocalFile(checkoutdir.path()) );
144 validatingExecJob(job);
145
146 QFile newfile( checkoutdir.path() + "/sample.file" );
147 QVERIFY(newfile.exists());
148 QVERIFY(newfile.open(QIODevice::ReadOnly));
149 QCOMPARE(QString::fromUtf8( newfile.readAll() ), origcontent);
150}
151
152QTEST_MAIN(TestSvnImport)
153

Callers

nothing calls this directly

Calls 6

setRepositoryServerMethod · 0.80
existsMethod · 0.80
validatingExecJobFunction · 0.70
createWorkingCopyMethod · 0.45
pathMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected