text_template mock_text_template_factory:: make_text_standard_control_text_single_line() const { text_template r(make_text_template_with_trivial_settings()); r.lines(make_text_block_only_lines()); r.lines().splice(r.lines().end(), make_standard_control_block_only_lines()); r.lines().splice(r.lines().end(), make_text_block_only_lines()); return r; }
text_template mock_text_template_factory:: make_text_expression_text_single_line() const { text_template r(make_text_template_with_trivial_settings()); r.lines(make_text_block_only_lines()); r.lines().splice(r.lines().end(), make_expression_block_only_lines()); r.lines().splice(r.lines().end(), make_text_block_only_lines()); return r; }
text_template mock_text_template_factory:: make_text_standard_control_text_multi_line(const unsigned int how_many) const { text_template r(make_text_template_with_trivial_properties()); r.body().lines(make_text_block_only_lines(how_many)); auto& l(r.body().lines()); l.splice(l.end(), make_standard_control_block_only_lines(how_many)); l.splice(l.end(), make_text_block_only_lines(how_many)); return r; }
text_template mock_text_template_factory:: make_text_standard_control_text_single_line() const { text_template r(make_text_template_with_trivial_properties()); r.body().lines(make_text_block_only_lines()); auto& l(r.body().lines()); l.splice(l.end(), make_standard_control_block_only_lines()); l.splice(l.end(), make_text_block_only_lines()); return r; }
text_template mock_text_template_factory:: make_text_standard_control_text_multi_line(const unsigned int how_many) const { text_template r(make_text_template_with_trivial_settings()); r.lines(make_text_block_only_lines(how_many)); r.lines().splice(r.lines().end(), make_standard_control_block_only_lines(how_many)); r.lines().splice(r.lines().end(), make_text_block_only_lines(how_many)); return r; }
text_template mock_text_template_factory::make_complex_structure() const { text_template r(make_text_template_with_trivial_properties()); r.body().lines(make_text_block_only_lines(3)); auto& l(r.body().lines()); l.splice(l.end(), make_standard_control_block_only_lines(4)); l.splice(l.end(), make_mixed_content_lines(2)); l.splice(l.end(), make_standard_control_block_only_lines()); l.splice(l.end(), make_text_block_only_lines()); return r; }
text_template mock_text_template_factory::make_complex_structure() const { text_template r(make_text_template_with_trivial_settings()); r.lines(make_text_block_only_lines(3)); r.lines().splice(r.lines().end(), make_standard_control_block_only_lines(4)); r.lines().splice(r.lines().end(), make_mixed_content_lines(2)); r.lines().splice(r.lines().end(), make_standard_control_block_only_lines()); r.lines().splice(r.lines().end(), make_text_block_only_lines()); return r; }
text_template mock_text_template_factory::make_with_containing_namespace() const { text_template r(make_text_template_with_trivial_properties()); auto& cn(r.properties().stitching_properties().containing_namespaces()); cn.push_back("first"); cn.push_back("second"); r.body().lines(make_text_block_only_lines()); return r; }
text_template mock_text_template_factory::make_with_general_settings() const { dogen::formatters::test::mock_general_settings_factory factory_; const auto gs(factory_.make_general_settings()); text_template r(make_text_template_with_trivial_settings()); r.settings().general_settings(gs); r.lines(make_text_block_only_lines()); return r; }
text_template mock_text_template_factory:: make_with_decoration_properties() const { dogen::formatters::test::mock_decoration_properties_factory factory_; const auto fp(factory_.make_decoration_properties()); text_template r(make_text_template_with_trivial_properties()); r.properties().decoration_properties(fp); r.body().lines(make_text_block_only_lines()); return r; }
text_template mock_text_template_factory:: make_empty_text_lines(const unsigned int how_many) const { text_template r(make_text_template_with_trivial_properties()); r.body().lines(make_text_block_only_lines(how_many, true/*empty_content*/)); return r; }
text_template mock_text_template_factory::make_multiple_text_block_lines( const unsigned int how_many) const { text_template r(make_text_template_with_trivial_properties()); r.body().lines(make_text_block_only_lines(how_many)); return r; }
text_template mock_text_template_factory::make_single_text_block_line() const { text_template r(make_text_template_with_trivial_properties()); r.body().lines(make_text_block_only_lines()); return r; }
text_template mock_text_template_factory::make_single_text_block_line() const { text_template r(make_text_template_with_trivial_settings()); r.lines(make_text_block_only_lines()); return r; }