File indexing completed on 2024-05-12 05:52:48

0001 /*
0002  * SPDX-License-Identifier: GPL-3.0-or-later
0003  * SPDX-FileCopyrightText: 2020 Johan Ouwerkerk <jm.ouwerkerk@gmail.com>
0004  */
0005 #ifndef ACCOUNTS_TEST_UTIL_PATH_H
0006 #define ACCOUNTS_TEST_UTIL_PATH_H
0007 
0008 #include <QString>
0009 
0010 namespace test
0011 {
0012     bool ensureOutputDirectory(void);
0013     bool ensureWritable(const QString &outputRelPath);
0014     bool copyResource(const QString &resource, const QString &outputRelPath);
0015     bool copyResourceAsWritable(const QString &resource, const QString &outputRelPath);
0016 
0017     QString slurp(const QString &path);
0018 
0019     QString path(const QString &relPath);
0020 }
0021 
0022 #endif