mirror of
https://github.com/QuasarApp/CopyrightFixer.git
synced 2025-05-08 15:39:45 +00:00
commit
111cdcf935
20
src/CopyrighFixer/CopyrighFixer/signer.cpp
Normal file
20
src/CopyrighFixer/CopyrighFixer/signer.cpp
Normal file
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
34
src/CopyrighFixer/CopyrighFixer/signer.h
Normal file
34
src/CopyrighFixer/CopyrighFixer/signer.h
Normal file
@ -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
|
26
tests/units/signertest.cpp
Normal file
26
tests/units/signertest.cpp
Normal file
@ -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
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
|
Loading…
x
Reference in New Issue
Block a user