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

Method testImportIntoDir

plugins/subversion/tests/test_svnimport.cpp:121–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void TestSvnImport::testImportIntoDir()
122{
123 QTemporaryDir reposDir;
124 VcsLocation reposLoc;
125 setupLocalRepository( reposDir.path(), reposLoc );
126
127 QTemporaryDir projectDir;
128 QString origcontent = QStringLiteral("This is a Test");
129 setupSampleProject( projectDir.path(), origcontent );
130
131 reposLoc.setRepositoryServer( reposLoc.repositoryServer() + '/' + QDir( projectDir.path() ).dirName() );
132 VcsJob* job = vcs->import( QStringLiteral("import test"), QUrl::fromLocalFile( projectDir.path() ), reposLoc );
133 validatingExecJob(job);
134
135 QTemporaryDir checkoutDir;
136 validateImport( reposLoc.repositoryServer(), checkoutDir, origcontent );
137}
138
139void TestSvnImport::validateImport( const QString& repourl, QTemporaryDir& checkoutdir, const QString& origcontent )
140{

Callers

nothing calls this directly

Calls 8

setupLocalRepositoryFunction · 0.85
setupSampleProjectFunction · 0.85
setRepositoryServerMethod · 0.80
repositoryServerMethod · 0.80
validatingExecJobFunction · 0.70
QDirClass · 0.50
pathMethod · 0.45
importMethod · 0.45

Tested by

no test coverage detected