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, NoMaxLengthNoTrim)
 
 TEST (SplitLines, NextNoMaxLengthNoTrim)
 
 TEST (SplitLines, NoMaxLengthTrim)
 
 TEST (SplitLines, NextNoMaxLengthTrim)
 
 TEST (SplitLines, MaxLength)
 
 TEST (SplitLines, NextMaxLength)
 
 TEST (SplitLines, MaxLengthOverflow)
 
 TEST (SplitLines, NextMaxLengthOverflow)
 
 TEST (SplitLines, MovedError)
 

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  ,
MaxLength   
)

Definition at line 70 of file test_splitlines.cpp.

◆ TEST() [2/9]

TEST ( SplitLines  ,
MaxLengthOverflow   
)

Definition at line 94 of file test_splitlines.cpp.

◆ TEST() [3/9]

TEST ( SplitLines  ,
MovedError   
)

Definition at line 109 of file test_splitlines.cpp.

◆ TEST() [4/9]

TEST ( SplitLines  ,
NextMaxLength   
)

Definition at line 81 of file test_splitlines.cpp.

◆ TEST() [5/9]

TEST ( SplitLines  ,
NextMaxLengthOverflow   
)

Definition at line 102 of file test_splitlines.cpp.

◆ TEST() [6/9]

TEST ( SplitLines  ,
NextNoMaxLengthNoTrim   
)

Definition at line 33 of file test_splitlines.cpp.

◆ TEST() [7/9]

TEST ( SplitLines  ,
NextNoMaxLengthTrim   
)

Definition at line 57 of file test_splitlines.cpp.

◆ TEST() [8/9]

TEST ( SplitLines  ,
NoMaxLengthNoTrim   
)

Definition at line 23 of file test_splitlines.cpp.

◆ TEST() [9/9]

TEST ( SplitLines  ,
NoMaxLengthTrim   
)

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.