Sha256: 0d1572c5a54517aabde7e72e8d9ceba3cc49d4293e9d4ba3648b15f15f9a97b7
Contents?: true
Size: 604 Bytes
Versions: 16
Compression:
Stored size: 604 Bytes
Contents
#include <catch.hpp> #include <internal/facts/linux/filesystem_resolver.hpp> using namespace std; using namespace facter::facts::linux; SCENARIO("blkid output with non-printable ASCII characters") { REQUIRE(filesystem_resolver::safe_convert("") == ""); REQUIRE(filesystem_resolver::safe_convert("hello") == "hello"); REQUIRE(filesystem_resolver::safe_convert("\"hello\"") == "\\\"hello\\\""); REQUIRE(filesystem_resolver::safe_convert("\\hello\\") == "\\\\hello\\\\"); REQUIRE(filesystem_resolver::safe_convert("i am \xE0\xB2\xA0\x5F\xE0\xB2\xA0") == "i am M-`M-2M- _M-`M-2M- "); }
Version data entries
16 entries across 16 versions & 2 rubygems