OKlibrary  0.2.1.6
OKlib::Refactoring::TestData Class Reference

To provide data used by the testing of include handling. More...

#include <IncludeHandling_Tests.hpp>

List of all members.

Public Types

typedef std::string string_type
typedef int size_type
typedef boost::tuple
< size_type, string_type,
size_type, Include_forms,
string_type
include_directive_data_type
typedef std::pair
< include_directive_data_type,
string_type
id_w_context_type
typedef std::vector
< id_w_context_type
id_w_context_vec_type
typedef boost::tuple
< string_type,
id_w_context_vec_type,
string_type
pr_type
typedef std::vector< pr_typetest_vector_type
typedef
id_w_context_vec_type::const_iterator 
id_w_c_vec_const_iterator_type
typedef include_directive_data_type id_t
typedef pr_type el_t
typedef
test_vector_type::const_iterator 
const_iterator

Public Member Functions

 TestData ()
const id_w_context_vec_typeinclude_directive_context_vector (const_iterator iterator)
const size_typenumber_spaces_after_hash (const_iterator, id_w_c_vec_const_iterator_type iterator2)
const string_typeheader (const_iterator, id_w_c_vec_const_iterator_type iterator2)
const size_typenumber_spaces_after_include (const_iterator, id_w_c_vec_const_iterator_type iterator2)
Include_forms include_form (const_iterator, id_w_c_vec_const_iterator_type iterator2)
const string_typecontext_string (const_iterator, id_w_c_vec_const_iterator_type iterator2)
const string_typeinclude_directive_string (const_iterator, id_w_c_vec_const_iterator_type iterator2)
const string_typeprogram_string (const_iterator iterator)
const string_typeprefix_string (const_iterator iterator)

Public Attributes

test_vector_type test_vector

Detailed Description

To provide data used by the testing of include handling.

This class has a data member test_vector which is a vector of tuples. Each tuple represents a different program. The first element of each tuple is a string representation of the prefix of the program, the second element is a vector of pairs (the first element of each pair is a tuple representing an include directive, the second element is the string representation of the same include directive) and the third element is the string representation of the whole program.

Todo:

New vector for negative tests.

Improve design so that only the necessary typedefs are public and the data is made available through public member functions.

Improve naming.

Definition at line 201 of file IncludeHandling_Tests.hpp.


Member Typedef Documentation

typedef test_vector_type::const_iterator OKlib::Refactoring::TestData::const_iterator

Definition at line 219 of file IncludeHandling_Tests.hpp.

typedef id_w_context_vec_type::const_iterator OKlib::Refactoring::TestData::id_w_c_vec_const_iterator_type

Definition at line 214 of file IncludeHandling_Tests.hpp.

Definition at line 205 of file IncludeHandling_Tests.hpp.

Definition at line 212 of file IncludeHandling_Tests.hpp.


Constructor & Destructor Documentation


Member Function Documentation

Definition at line 352 of file IncludeHandling_Tests.hpp.


Member Data Documentation


The documentation for this class was generated from the following file: