00001 00004 /* Warning: This file is generated by /data/home/olly/tmp/xapian-svn-snapshot/tags/1.0.10/xapian/xapian-core/tests/generate-api_generated - do not modify directly! */ 00005 /* Copyright (C) 2007 Olly Betts 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00022 #include <config.h> 00023 00024 #include "api_generated.h" 00025 00026 #include <xapian.h> 00027 00028 #include "apitest.h" 00029 #include "testutils.h" 00030 00031 using namespace std; 00032 00034 DEFINE_TESTCASE(defaultctor1, !backend) { 00035 Xapian::BM25Weight bm25weight; 00036 Xapian::BoolWeight boolweight; 00037 Xapian::TradWeight tradweight; 00038 return true; 00039 } 00040 00042 DEFINE_TESTCASE(copyassign1, !backend) { 00043 Xapian::Database database; 00044 Xapian::Database copy_database(database); 00045 database = copy_database; 00046 00047 Xapian::DateValueRangeProcessor datevaluerangeprocessor(0); 00048 Xapian::DateValueRangeProcessor copy_datevaluerangeprocessor(datevaluerangeprocessor); 00049 datevaluerangeprocessor = copy_datevaluerangeprocessor; 00050 00051 Xapian::Document document; 00052 Xapian::Document copy_document(document); 00053 document = copy_document; 00054 00055 Xapian::ESet eset; 00056 Xapian::ESet copy_eset(eset); 00057 eset = copy_eset; 00058 00059 Xapian::ESetIterator esetiterator; 00060 Xapian::ESetIterator copy_esetiterator(esetiterator); 00061 esetiterator = copy_esetiterator; 00062 00063 Xapian::Enquire enquire(Xapian::InMemory::open()); 00064 Xapian::Enquire copy_enquire(enquire); 00065 enquire = copy_enquire; 00066 00067 Xapian::MSet mset; 00068 Xapian::MSet copy_mset(mset); 00069 mset = copy_mset; 00070 00071 Xapian::MSetIterator msetiterator; 00072 Xapian::MSetIterator copy_msetiterator(msetiterator); 00073 msetiterator = copy_msetiterator; 00074 00075 Xapian::MultiValueSorter multivaluesorter; 00076 Xapian::MultiValueSorter copy_multivaluesorter(multivaluesorter); 00077 multivaluesorter = copy_multivaluesorter; 00078 00079 Xapian::NumberValueRangeProcessor numbervaluerangeprocessor(0, ""); 00080 Xapian::NumberValueRangeProcessor copy_numbervaluerangeprocessor(numbervaluerangeprocessor); 00081 numbervaluerangeprocessor = copy_numbervaluerangeprocessor; 00082 00083 Xapian::PositionIterator positioniterator; 00084 Xapian::PositionIterator copy_positioniterator(positioniterator); 00085 positioniterator = copy_positioniterator; 00086 00087 Xapian::PostingIterator postingiterator; 00088 Xapian::PostingIterator copy_postingiterator(postingiterator); 00089 postingiterator = copy_postingiterator; 00090 00091 Xapian::Query query; 00092 Xapian::Query copy_query(query); 00093 query = copy_query; 00094 00095 Xapian::QueryParser queryparser; 00096 Xapian::QueryParser copy_queryparser(queryparser); 00097 queryparser = copy_queryparser; 00098 00099 Xapian::RSet rset; 00100 Xapian::RSet copy_rset(rset); 00101 rset = copy_rset; 00102 00103 Xapian::SimpleStopper simplestopper; 00104 Xapian::SimpleStopper copy_simplestopper(simplestopper); 00105 simplestopper = copy_simplestopper; 00106 00107 Xapian::Stem stem; 00108 Xapian::Stem copy_stem(stem); 00109 stem = copy_stem; 00110 00111 Xapian::StringValueRangeProcessor stringvaluerangeprocessor(0); 00112 Xapian::StringValueRangeProcessor copy_stringvaluerangeprocessor(stringvaluerangeprocessor); 00113 stringvaluerangeprocessor = copy_stringvaluerangeprocessor; 00114 00115 Xapian::TermGenerator termgenerator; 00116 Xapian::TermGenerator copy_termgenerator(termgenerator); 00117 termgenerator = copy_termgenerator; 00118 00119 Xapian::TermIterator termiterator; 00120 Xapian::TermIterator copy_termiterator(termiterator); 00121 termiterator = copy_termiterator; 00122 00123 Xapian::ValueIterator valueiterator; 00124 Xapian::ValueIterator copy_valueiterator(valueiterator); 00125 valueiterator = copy_valueiterator; 00126 00127 Xapian::WritableDatabase writabledatabase; 00128 Xapian::WritableDatabase copy_writabledatabase(writabledatabase); 00129 writabledatabase = copy_writabledatabase; 00130 00131 return true; 00132 }