indexing description: "An Eiffel test catalog" legal: "See notice at end of class." status: "See notice at end of class."; date: "93/07/16" class EIFFEL_TEST_CATALOG create make feature -- Creation make (tests: LIST [NAMED_EIFFEL_TEST]) is -- Create `Current' with `tests'. require test_list_not_void: tests /= Void; do all_tests := tests; end; feature -- Properties all_tests: LIST [NAMED_EIFFEL_TEST]; -- List of all tests tests_matching_one_keyword (keys: LIST [STRING]): LIST [NAMED_EIFFEL_TEST] is -- List of all tests whose keyword list contains -- at least one of the keywords in `keys'. require keywords_not_void: keys /= Void; local test: NAMED_EIFFEL_TEST; do from create {LINKED_LIST [NAMED_EIFFEL_TEST]} Result.make; all_tests.start; until all_tests.after loop test := all_tests.item; if test.has_one_keyword (keys) then Result.extend (test); end end end; tests_matching_all_keywords (keys: LIST [STRING]): LIST [NAMED_EIFFEL_TEST] is -- List of all tests whose keyword list contains -- all of the keywords in `keys'. require keywords_not_void: keys /= Void; local test: NAMED_EIFFEL_TEST; do from create {LINKED_LIST [NAMED_EIFFEL_TEST]} Result.make; all_tests.start; until all_tests.after loop test := all_tests.item; if test.has_all_keywords (keys) then Result.extend (test); end end end; indexing copyright: "[ Copyright (c) 1984-2007, University of Southern California and contributors. All rights reserved. ]" license: "Your use of this work is governed under the terms of the GNU General Public License version 2" copying: "[ This file is part of the EiffelWeasel Eiffel Regression Tester. The EiffelWeasel Eiffel Regression Tester is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. The EiffelWeasel Eiffel Regression Tester is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details. You should have received a copy of the GNU General Public License version 2 along with the EiffelWeasel Eiffel Regression Tester if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA ]" end