#include "test_common.hpp"
#include <iostream>
#include <openvpn/common/path.hpp>
Go to the source code of this file.
|
| void | test_basename (const std::string &path) |
| |
| void | dirname (const std::string &path) |
| |
| void | ext (const std::string &path) |
| |
| void | is_flat (const std::string &path) |
| |
| void | join (const std::string &p1, const std::string &p2) |
| |
| void | join3 (const std::string &p1, const std::string &p2, const std::string &p3) |
| |
| void | join4 (const std::string &p1, const std::string &p2, const std::string &p3, const std::string &p4) |
| |
| void | splitjoin (const std::string &p1) |
| |
| | TEST (Path, Test1) |
| |
| void | test_contained (const std::string &path, const bool expected) |
| |
| | TEST (Path, Test2) |
| |
|
| static std::stringstream | out |
| |
◆ dirname()
| void dirname |
( |
const std::string & |
path | ) |
|
◆ ext()
| void ext |
( |
const std::string & |
path | ) |
|
◆ is_flat()
| void is_flat |
( |
const std::string & |
path | ) |
|
◆ join()
| void join |
( |
const std::string & |
p1, |
|
|
const std::string & |
p2 |
|
) |
| |
◆ join3()
| void join3 |
( |
const std::string & |
p1, |
|
|
const std::string & |
p2, |
|
|
const std::string & |
p3 |
|
) |
| |
◆ join4()
| void join4 |
( |
const std::string & |
p1, |
|
|
const std::string & |
p2, |
|
|
const std::string & |
p3, |
|
|
const std::string & |
p4 |
|
) |
| |
◆ splitjoin()
| void splitjoin |
( |
const std::string & |
p1 | ) |
|
◆ TEST() [1/2]
◆ TEST() [2/2]
◆ test_basename()
| void test_basename |
( |
const std::string & |
path | ) |
|
◆ test_contained()
| void test_contained |
( |
const std::string & |
path, |
|
|
const bool |
expected |
|
) |
| |
◆ out