Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Variables
gmx::test::anonymous_namespace{textreader.cpp} Namespace Reference

Classes

struct  TextReaderTestParams
 Helper struct. More...
 
class  TextReaderTest
 Test fixture. More...
 

Typedefs

using Container = std::vector< std::string >
 Convenience name.
 
using TestCallbackFunc = void(*)(TextReader &)
 Convenience type for callbacks.
 

Variables

const Container g_inputs
 Test input data. Some configurations will remove comments delimited by '#'. More...
 
const Container g_unchangedOutputs
 A case of expected output data that is produced from two different configurations. More...
 

Variable Documentation

const Container gmx::test::anonymous_namespace{textreader.cpp}::g_inputs
Initial value:
= {
"",
" \t ",
"expected text",
" expected text ",
"expected text \t",
" \t expected text",
" \t expected text \t",
"expected text#",
"expected text\t #",
"expected text# ",
"expected text # not expected ",
"#",
"\t #",
" # not expected ",
}

Test input data. Some configurations will remove comments delimited by '#'.

const Container gmx::test::anonymous_namespace{textreader.cpp}::g_unchangedOutputs
Initial value:
= {
"\n",
" \t \n",
"expected text\n",
" expected text \n",
"expected text \t\n",
" \t expected text\n",
" \t expected text \t\n",
"expected text#\n",
"expected text\t #\n",
"expected text# \n",
"expected text # not expected \n",
"#\n",
"\t #\n",
" # not expected \n",
}

A case of expected output data that is produced from two different configurations.

Note that the implementation of StringInputStream joins the input container with "\n", so the inputs are always changed before being read. The name of this variable reflects that TextReader does not change them during reading.