| 81 | } |
| 82 | |
| 83 | void TestVcsLocation::testRepositoryServerConstructor() |
| 84 | { |
| 85 | // valid |
| 86 | { |
| 87 | const QString repositoryServer = QStringLiteral("server"); |
| 88 | const QString repositoryModule = QStringLiteral("module"); |
| 89 | const QString repositoryBranch = QStringLiteral("branch"); |
| 90 | const QString repositoryTag = QStringLiteral("tag"); |
| 91 | const QString repositoryPath = QStringLiteral("path"); |
| 92 | const QVariant userData = QVariant(QStringLiteral("userdata")); |
| 93 | |
| 94 | VcsLocation serverLocation(repositoryServer); |
| 95 | setServerLocation(serverLocation, |
| 96 | repositoryModule, repositoryBranch, repositoryTag, repositoryPath, userData); |
| 97 | |
| 98 | compareServerLocation(serverLocation, |
| 99 | repositoryServer, repositoryModule, repositoryBranch, repositoryTag, repositoryPath, |
| 100 | userData); |
| 101 | } |
| 102 | |
| 103 | // invalid |
| 104 | { |
| 105 | const QString repositoryServer; |
| 106 | VcsLocation serverLocation(repositoryServer); |
| 107 | |
| 108 | QCOMPARE(serverLocation.isValid(), false); |
| 109 | QCOMPARE(serverLocation.type(), VcsLocation::RepositoryLocation); |
| 110 | QCOMPARE(serverLocation.repositoryServer(), repositoryServer); |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | void TestVcsLocation::testCopyConstructor() |
| 115 | { |
nothing calls this directly
no test coverage detected