4
0
mirror of https://github.com/QuasarApp/CopyrightFixer.git synced 2025-05-08 15:39:45 +00:00

Merge pull request from QuasarApp/task_50

Added a Signer class.
This commit is contained in:
Igor loschinin 2021-05-08 15:26:26 +03:00 committed by GitHub
commit 111cdcf935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 105 additions and 0 deletions
src/CopyrighFixer/CopyrighFixer
tests/units

@ -0,0 +1,20 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "signer.h"
namespace CopyrighFixer {
Signer::Signer() {
}
bool Signer::checkSign(const Config &objConf) {
return true;
}
}

@ -0,0 +1,34 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#ifndef SIGNER_H
#define SIGNER_H
#include "CopyrighFixer_global.h"
#include "config.h"
namespace CopyrighFixer {
/**
* @brief The Signer class
*/
class CopyrighFixer_EXPORT Signer {
public:
Signer();
/**
* @brief checkSign The method that add copyright to all sources files.
* @param objConf This is a configuration object.
*/
bool checkSign(const Config &objConf);
};
}
#endif // SIGNER_H

@ -0,0 +1,26 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "signertest.h"
#include <QDebug>
SignerTest::SignerTest() {
}
SignerTest::~SignerTest() {
}
void SignerTest::test() {
testSigner();
}
void SignerTest::testSigner() {
qWarning() << "The SignerTest class is not implemented";
QVERIFY(true);
}

25
tests/units/signertest.h Normal file

@ -0,0 +1,25 @@
//#
//# Copyright (C) 2020-2021 QuasarApp.
//# Distributed under the lgplv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#ifndef SIGNERTEST_H
#define SIGNERTEST_H
#include "test.h"
#include "testutils.h"
#include "CopyrighFixer/signer.h"
#include <QTest>
class SignerTest: public Test, protected TestUtils {
public:
SignerTest();
~SignerTest();
void test();
void testSigner();
};
#endif // SIGNERTEST_H