Sequoia
Loading...
Searching...
No Matches
FileEditors.hpp
Go to the documentation of this file.
1
2// Copyright Oliver J. Rosten 2020. //
3// Distributed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. //
4// (See accompanying file LICENSE.md or copy at //
5// https://www.gnu.org/licenses/gpl-3.0.en.html) //
7
8#pragma once
9
16
17#include <filesystem>
18#include <optional>
19#include <vector>
20
21namespace sequoia::testing
22{
23 void add_include(const std::filesystem::path& file, std::string_view includePath);
24
25 void add_to_cmake(const std::filesystem::path& cmakeLists,
26 const std::filesystem::path& hostDir,
27 const std::filesystem::path& file,
28 std::string_view patternOpen,
29 std::string_view patternClose,
30 std::string_view cmakeEntryPrexfix);
31
32 void add_to_suite(const std::filesystem::path& file, std::string_view suiteName, indentation indent, const std::vector<std::string>& tests);
33
34
36 {
37 std::optional<std::string> working, prediction;
38 };
39
40 [[nodiscard]]
41 reduced_file_contents get_reduced_file_content(const std::filesystem::path& file, const std::filesystem::path& prediction);
42
43}
Concepts which are sufficiently general to appear in the sequoia namespace.
A collection of functions for formatting test output.
Definition: FileEditors.hpp:36