Home
last modified time | relevance | path

Searched refs:get_vector (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/kyua/utils/text/
H A Dtemplates_test.cpp125 ATF_REQUIRE(templates.get_vector("the-name").empty()); in ATF_TEST_CASE_BODY()
135 ATF_REQUIRE(!templates.get_vector("the-name").empty()); in ATF_TEST_CASE_BODY()
137 ATF_REQUIRE(templates.get_vector("the-name").empty()); in ATF_TEST_CASE_BODY()
146 ATF_REQUIRE_EQ(0, templates.get_vector("the-name").size()); in ATF_TEST_CASE_BODY()
148 ATF_REQUIRE_EQ(1, templates.get_vector("the-name").size()); in ATF_TEST_CASE_BODY()
150 ATF_REQUIRE_EQ(2, templates.get_vector("the-name").size()); in ATF_TEST_CASE_BODY()
152 ATF_REQUIRE_EQ(3, templates.get_vector("the-name").size()); in ATF_TEST_CASE_BODY()
158 ATF_REQUIRE(expected == templates.get_vector("the-name")); in ATF_TEST_CASE_BODY()
214 ATF_REQUIRE_EQ(0, templates.get_vector("foo").size()); in ATF_TEST_CASE_BODY()
215 ATF_REQUIRE_EQ(1, templates.get_vector("bar").size()); in ATF_TEST_CASE_BODY()
[all …]
H A Dtemplates.cpp348 if (next_index < _templates.get_vector(loop.vector).size()) { in handle_normal()
375 if (_templates.get_vector(loop.vector).empty()) { in handle_normal()
642 text::templates_def::get_vector(const std::string& name) const in get_vector() function in text::templates_def
662 text::templates_def::get_vector(const std::string& name, in get_vector() function in text::templates_def
665 const strings_vector& vector = get_vector(name); in get_vector()
719 return F("%s") % get_vector(arg1).size(); in evaluate()
721 return get_vector(arg0, arg1); in evaluate()
H A Dtemplates.hpp97 const std::string& get_vector(const std::string&, const std::string&) const;
109 const strings_vector& get_vector(const std::string&) const;