Skip to content

Commit

Permalink
fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Mar 24, 2024
1 parent ee2c431 commit 40bf372
Show file tree
Hide file tree
Showing 5 changed files with 338 additions and 321 deletions.
20 changes: 12 additions & 8 deletions tests/ci/test_docs.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#include <tests/conftest.cpp>

class DocsTests : public DocsTestFixture, public ::testing::WithParamInterface<std::tuple<const char *, const char *>> {};
INSTANTIATE_TEST_SUITE_P(DocFormats, DocsTests, ::testing::Values(
class DocsTests: public DocsTestFixture, public ::testing::WithParamInterface<std::tuple<const char *, const char *>> {};
INSTANTIATE_TEST_SUITE_P(
DocFormats,
DocsTests,
::testing::Values(
std::make_tuple("html", "index.html"),
std::make_tuple("epub", "Sunshine.epub")
));
std::make_tuple("epub", "Sunshine.epub")));
TEST_P(DocsTests, MakeDocs) {
auto params = GetParam();
std::string format = std::get<0>(params);
Expand All @@ -19,11 +21,13 @@ TEST_P(DocsTests, MakeDocs) {
EXPECT_TRUE(std::filesystem::exists(expected_file));
}

class DocsRstTests : public DocsPythonVenvTest, public ::testing::WithParamInterface<std::filesystem::path> {};
INSTANTIATE_TEST_SUITE_P(RstFiles, DocsRstTests, ::testing::Values(
class DocsRstTests: public DocsPythonVenvTest, public ::testing::WithParamInterface<std::filesystem::path> {};
INSTANTIATE_TEST_SUITE_P(
RstFiles,
DocsRstTests,
::testing::Values(
std::filesystem::path(TESTS_DOCS_DIR),
std::filesystem::path(TESTS_SOURCE_DIR) / "README.rst"
));
std::filesystem::path(TESTS_SOURCE_DIR) / "README.rst"));
TEST_P(DocsRstTests, RstCheckDocs) {
std::filesystem::path docs_dir = GetParam();
std::string command = "rstcheck -r " + docs_dir.string();
Expand Down
Loading

0 comments on commit 40bf372

Please sign in to comment.