OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_path.cpp File Reference
#include "test_common.hpp"
#include <iostream>
#include <openvpn/common/path.hpp>
Include dependency graph for test_path.cpp:

Go to the source code of this file.

Functions

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)
 
void test_join_speed ()
 

Variables

static std::stringstream out
 

Function Documentation

◆ dirname()

void dirname ( const std::string &  path)

Definition at line 18 of file test_path.cpp.

Here is the caller graph for this function:

◆ ext()

void ext ( const std::string &  path)

Definition at line 24 of file test_path.cpp.

Here is the caller graph for this function:

◆ is_flat()

void is_flat ( const std::string &  path)

Definition at line 30 of file test_path.cpp.

Here is the caller graph for this function:

◆ join()

void join ( const std::string &  p1,
const std::string &  p2 
)

Definition at line 36 of file test_path.cpp.

Here is the caller graph for this function:

◆ join3()

void join3 ( const std::string &  p1,
const std::string &  p2,
const std::string &  p3 
)

Definition at line 42 of file test_path.cpp.

Here is the caller graph for this function:

◆ join4()

void join4 ( const std::string &  p1,
const std::string &  p2,
const std::string &  p3,
const std::string &  p4 
)

Definition at line 48 of file test_path.cpp.

Here is the caller graph for this function:

◆ splitjoin()

void splitjoin ( const std::string &  p1)

Definition at line 54 of file test_path.cpp.

Here is the caller graph for this function:

◆ TEST() [1/2]

TEST ( path  ,
test1   
)

Definition at line 62 of file test_path.cpp.

◆ TEST() [2/2]

TEST ( path  ,
test2   
)

Definition at line 140 of file test_path.cpp.

◆ test_basename()

void test_basename ( const std::string &  path)

Definition at line 12 of file test_path.cpp.

Here is the caller graph for this function:

◆ test_contained()

void test_contained ( const std::string &  path,
const bool  expected 
)

Definition at line 134 of file test_path.cpp.

Here is the caller graph for this function:

◆ test_join_speed()

void test_join_speed ( )

Definition at line 171 of file test_path.cpp.

Variable Documentation

◆ out

std::stringstream out
static

Definition at line 10 of file test_path.cpp.