Sha256: 91099719cf5997cfa0c971c4c38306f8f286e2527b6f953e7a45b1a04406e1d7

Contents?: true

Size: 840 Bytes

Versions: 16

Compression:

Stored size: 840 Bytes

Contents

#pragma once

#include <string>
#include <functional>
#include "collection_fixture.hpp"

#define JAVA_EXECUTABLE "@Java_JAVA_EXECUTABLE@"
#define BINARY_DIRECTORY "@CMAKE_BINARY_DIR@"
#define LIBFACTER_OUTPUT_DIRECTORY "@CMAKE_LIBRARY_OUTPUT_DIRECTORY@"
#define LIBFACTER_TESTS_DIRECTORY "@CMAKE_CURRENT_LIST_DIR@"

namespace facter { namespace testing {

    bool load_fixture(std::string const& name, std::string& data);

    // Creates a local directory and adds a file <filename> to it containing <contents>.
    // When destroyed, it deletes the directory.
    struct test_with_relative_path
    {
        test_with_relative_path(std::string const& dirname, std::string const& filename, std::string const& contents);
        ~test_with_relative_path();

     private:
        std::string _dir;
    };

}}  // namespace facter::testing

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.12.1.cfacter.20181031 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.11.6.cfacter.20181031 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.12.1.cfacter.20181023 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.11.5.cfacter.20181022 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.12.0.cfacter.20181004 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.12.0.cfacter.20181001 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.12.0.cfacter.20180918 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.11.4.cfacter.20180821 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.11.3.cfacter.20180716 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.11.2.cfacter.20180612 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.9.6.cfacter.20180612 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.11.2.cfacter.20180606 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.9.6.cfacter.20180606 ext/facter/facter/lib/tests/fixtures.hpp.in
facter-3.11.0.cfacter.20180319 ext/facter/facter/lib/tests/fixtures.hpp.in
cfacter-3.11.0.rc.20180314 ext/facter/facter/lib/tests/fixtures.hpp.in