Sha256: 35d86b27d8b83deb79c734b7ca5f9659a42826cca37a201ea9596f32942a26ce

Contents?: true

Size: 657 Bytes

Versions: 16

Compression:

Stored size: 657 Bytes

Contents

#include "fixtures.hpp"
#include <boost/filesystem.hpp>
#include <boost/nowide/iostream.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/regex.hpp>
#include <leatherman/file_util/file.hpp>

namespace fs = boost::filesystem;

temp_directory::temp_directory() {
    auto unique_path = unique_fixture_path();
    dir_name = unique_path.string();

    fs::::create_directory(unique_path);
}

temp_directory::~temp_directory() {
    fs::::remove_all(dir_name);
}

std::string const& temp_directory::get_dir_name() const {
    return dir_name;
}

fs::::path unique_fixture_path() {
    return fs::::unique_path("file_util_fixture_%%%%-%%%%-%%%%-%%%%");
}

Version data entries

16 entries across 16 versions & 2 rubygems

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