OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_splitlines.cpp File Reference
Include dependency graph for test_splitlines.cpp:

Go to the source code of this file.

Functions

 TEST (SplitLines, no_max_length_no_trim)
 
 TEST (SplitLines, next_no_max_length_no_trim)
 
 TEST (SplitLines, no_max_length_trim)
 
 TEST (SplitLines, next_no_max_length_trim)
 
 TEST (SplitLines, max_length)
 
 TEST (SplitLines, next_max_length)
 
 TEST (SplitLines, max_length_overflow)
 
 TEST (SplitLines, next_max_length_overflow)
 
 TEST (SplitLines, moved_error)
 

Variables

const std::string short_text = "Lorem\nipsum\r\ndolor\n\r\nsit"
 
const std::vector< std::string > short_lines {"Lorem\n", "ipsum\r\n", "dolor\n", "\r\n", "sit"}
 
const std::vector< std::string > short_lines_trim {"Lorem", "ipsum", "dolor", "", "sit"}
 

Function Documentation

◆ TEST() [1/9]

TEST ( SplitLines  ,
max_length   
)

Definition at line 70 of file test_splitlines.cpp.

◆ TEST() [2/9]

TEST ( SplitLines  ,
max_length_overflow   
)

Definition at line 94 of file test_splitlines.cpp.

◆ TEST() [3/9]

TEST ( SplitLines  ,
moved_error   
)

Definition at line 109 of file test_splitlines.cpp.

◆ TEST() [4/9]

TEST ( SplitLines  ,
next_max_length   
)

Definition at line 81 of file test_splitlines.cpp.

◆ TEST() [5/9]

TEST ( SplitLines  ,
next_max_length_overflow   
)

Definition at line 102 of file test_splitlines.cpp.

◆ TEST() [6/9]

TEST ( SplitLines  ,
next_no_max_length_no_trim   
)

Definition at line 33 of file test_splitlines.cpp.

◆ TEST() [7/9]

TEST ( SplitLines  ,
next_no_max_length_trim   
)

Definition at line 57 of file test_splitlines.cpp.

◆ TEST() [8/9]

TEST ( SplitLines  ,
no_max_length_no_trim   
)

Definition at line 23 of file test_splitlines.cpp.

◆ TEST() [9/9]

TEST ( SplitLines  ,
no_max_length_trim   
)

Definition at line 46 of file test_splitlines.cpp.

Variable Documentation

◆ short_lines

const std::vector<std::string> short_lines {"Lorem\n", "ipsum\r\n", "dolor\n", "\r\n", "sit"}

Definition at line 20 of file test_splitlines.cpp.

◆ short_lines_trim

const std::vector<std::string> short_lines_trim {"Lorem", "ipsum", "dolor", "", "sit"}

Definition at line 21 of file test_splitlines.cpp.

◆ short_text

const std::string short_text = "Lorem\nipsum\r\ndolor\n\r\nsit"

Definition at line 19 of file test_splitlines.cpp.