lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [01/20] lucenenet git commit: SWEEP: Added missing SuppressCodecs attributes solution-wide
Date Tue, 28 Feb 2017 12:29:52 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/api-work 03d03a939 -> 2ddcc94bf


SWEEP: Added missing SuppressCodecs attributes solution-wide


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/3527406b
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/3527406b
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/3527406b

Branch: refs/heads/api-work
Commit: 3527406b9df344f67dd569d3226e7cb52b9e2c56
Parents: 03d03a9
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Feb 27 17:32:23 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Feb 27 17:32:23 2017 +0700

----------------------------------------------------------------------
 .../Analysis/Core/TestBugInSomething.cs                         | 3 ++-
 .../Collation/TestCollationKeyAnalyzer.cs                       | 1 +
 .../SimpleNaiveBayesClassifierTest.cs                           | 3 +--
 src/Lucene.Net.Tests.Expressions/TestDemoExpressions.cs         | 5 +++--
 src/Lucene.Net.Tests.Expressions/TestExpressionRescorer.cs      | 1 +
 src/Lucene.Net.Tests.Expressions/TestExpressionSorts.cs         | 1 +
 src/Lucene.Net.Tests.Expressions/TestExpressionValueSource.cs   | 1 +
 src/Lucene.Net.Tests.Facet/FacetTestCase.cs                     | 1 +
 src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyCombined.cs     | 2 +-
 src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs        | 1 +
 src/Lucene.Net.Tests.Misc/Index/Sorter/TestBlockJoinSorter.cs   | 1 +
 src/Lucene.Net.Tests.Misc/Index/Sorter/TestEarlyTermination.cs  | 1 +
 .../Index/Sorter/TestSortingMergePolicy.cs                      | 3 ++-
 src/Lucene.Net.Tests.Misc/Misc/TestHighFreqTerms.cs             | 1 +
 .../Function/TestDocValuesFieldSources.cs                       | 2 +-
 .../Function/TestLongNormValueSource.cs                         | 2 +-
 .../Analyzing/TestAnalyzingQueryParser.cs                       | 1 +
 .../Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs            | 2 +-
 .../Suggest/Analyzing/TestFreeTextSuggester.cs                  | 3 ++-
 src/Lucene.Net.Tests.Suggest/Suggest/DocumentDictionaryTest.cs  | 1 +
 .../Suggest/DocumentValueSourceDictionaryTest.cs                | 1 +
 21 files changed, 26 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestBugInSomething.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestBugInSomething.cs b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestBugInSomething.cs
index 5a08ec4..ed4580b 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestBugInSomething.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Analysis/Core/TestBugInSomething.cs
@@ -29,7 +29,8 @@ namespace Lucene.Net.Analysis.Core
 	 * See the License for the specific language governing permissions and
 	 * limitations under the License.
 	 */
-
+    
+    [SuppressCodecs("Direct")]
     public class TestBugInSomething : BaseTokenStreamTestCase
     {
         [Test]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Analysis.Common/Collation/TestCollationKeyAnalyzer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Collation/TestCollationKeyAnalyzer.cs b/src/Lucene.Net.Tests.Analysis.Common/Collation/TestCollationKeyAnalyzer.cs
index 49a8782..6af17e1 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Collation/TestCollationKeyAnalyzer.cs
+++ b/src/Lucene.Net.Tests.Analysis.Common/Collation/TestCollationKeyAnalyzer.cs
@@ -26,6 +26,7 @@ namespace Lucene.Net.Collation
      * limitations under the License.
      */
 
+    [SuppressCodecs("Lucene3x")]
     [TestFixture]
 	public class TestCollationKeyAnalyzer : CollationTestBase
 	{

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Classification/SimpleNaiveBayesClassifierTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Classification/SimpleNaiveBayesClassifierTest.cs b/src/Lucene.Net.Tests.Classification/SimpleNaiveBayesClassifierTest.cs
index 077554c..0af9673 100644
--- a/src/Lucene.Net.Tests.Classification/SimpleNaiveBayesClassifierTest.cs
+++ b/src/Lucene.Net.Tests.Classification/SimpleNaiveBayesClassifierTest.cs
@@ -31,8 +31,7 @@ namespace Lucene.Net.Classification
      * Testcase for {@link SimpleNaiveBayesClassifier}
      */
     // TODO : eventually remove this if / when fallback methods exist for all un-supportable
codec methods (see LUCENE-4872)
-    // [Util.LuceneTestCase.SuppressCodecs("Lucene3x")] TODO : seems like we lost ability
to pass in params in SupressCodecs constructor
-    [SuppressCodecs]
+    [SuppressCodecs("Lucene3x")]
     public class SimpleNaiveBayesClassifierTest : ClassificationTestBase<BytesRef>
     {
         [Test]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Expressions/TestDemoExpressions.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Expressions/TestDemoExpressions.cs b/src/Lucene.Net.Tests.Expressions/TestDemoExpressions.cs
index 4d6a51a..bbe4260 100644
--- a/src/Lucene.Net.Tests.Expressions/TestDemoExpressions.cs
+++ b/src/Lucene.Net.Tests.Expressions/TestDemoExpressions.cs
@@ -11,8 +11,9 @@ using Expression = System.Linq.Expressions.Expression;
 
 namespace Lucene.Net.Tests.Expressions
 {
-	/// <summary>simple demo of using expressions</summary>
-	public class TestDemoExpressions : Util.LuceneTestCase
+    /// <summary>simple demo of using expressions</summary>
+    [SuppressCodecs("Lucene3x")]
+    public class TestDemoExpressions : Util.LuceneTestCase
 	{
 		internal IndexSearcher searcher;
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Expressions/TestExpressionRescorer.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Expressions/TestExpressionRescorer.cs b/src/Lucene.Net.Tests.Expressions/TestExpressionRescorer.cs
index 1899640..ae8943a 100644
--- a/src/Lucene.Net.Tests.Expressions/TestExpressionRescorer.cs
+++ b/src/Lucene.Net.Tests.Expressions/TestExpressionRescorer.cs
@@ -8,6 +8,7 @@ using NUnit.Framework;
 
 namespace Lucene.Net.Tests.Expressions
 {
+    [SuppressCodecs("Lucene3x")]
 	public class TestExpressionRescorer : Lucene.Net.Util.LuceneTestCase
 	{
 		internal IndexSearcher searcher;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Expressions/TestExpressionSorts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Expressions/TestExpressionSorts.cs b/src/Lucene.Net.Tests.Expressions/TestExpressionSorts.cs
index 4852778..563db40 100644
--- a/src/Lucene.Net.Tests.Expressions/TestExpressionSorts.cs
+++ b/src/Lucene.Net.Tests.Expressions/TestExpressionSorts.cs
@@ -19,6 +19,7 @@ namespace Lucene.Net.Tests.Expressions
     /// Tests some basic expressions against different queries,
     /// and fieldcache/docvalues fields against an equivalent sort.
     /// </remarks>
+    [SuppressCodecs("Lucene3x")]
     public class TestExpressionSorts : Util.LuceneTestCase
     {
         private Directory dir;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Expressions/TestExpressionValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Expressions/TestExpressionValueSource.cs b/src/Lucene.Net.Tests.Expressions/TestExpressionValueSource.cs
index cc1b9b4..5ccd24c 100644
--- a/src/Lucene.Net.Tests.Expressions/TestExpressionValueSource.cs
+++ b/src/Lucene.Net.Tests.Expressions/TestExpressionValueSource.cs
@@ -11,6 +11,7 @@ using NUnit.Framework;
 
 namespace Lucene.Net.Tests.Expressions
 {
+    [SuppressCodecs("Lucene3x")]
 	public class TestExpressionValueSource : Util.LuceneTestCase
 	{
 		internal DirectoryReader reader;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Facet/FacetTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Facet/FacetTestCase.cs b/src/Lucene.Net.Tests.Facet/FacetTestCase.cs
index 3a44c89..849f32a 100644
--- a/src/Lucene.Net.Tests.Facet/FacetTestCase.cs
+++ b/src/Lucene.Net.Tests.Facet/FacetTestCase.cs
@@ -39,6 +39,7 @@ namespace Lucene.Net.Facet
     using LuceneTestCase = Lucene.Net.Util.LuceneTestCase;
     using TestUtil = Lucene.Net.Util.TestUtil;
 
+    [SuppressCodecs("Lucene3x")]
     [TestFixture]
     public abstract class FacetTestCase : LuceneTestCase
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyCombined.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyCombined.cs b/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyCombined.cs
index 9ce09d0..4e4b164 100644
--- a/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyCombined.cs
+++ b/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyCombined.cs
@@ -36,7 +36,7 @@ namespace Lucene.Net.Facet.Taxonomy
 
 
     [TestFixture]
-    [SuppressCodecs]
+    [SuppressCodecs("SimpleText", "Lucene3x")]
     public class TestTaxonomyCombined : FacetTestCase
     {
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
index a364e45..9e2ad28 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/SorterTestBase.cs
@@ -31,6 +31,7 @@ namespace Lucene.Net.Index.Sorter
      * limitations under the License.
      */
 
+    [SuppressCodecs("Lucene3x")]
     public abstract class SorterTestBase : LuceneTestCase
     {
         internal class NormsSimilarity : Similarity

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestBlockJoinSorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/TestBlockJoinSorter.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestBlockJoinSorter.cs
index 5608827..8ecb6cd 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/TestBlockJoinSorter.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestBlockJoinSorter.cs
@@ -11,6 +11,7 @@ using Lucene.Net.Documents;
 
 namespace Lucene.Net.Index.Sorter
 {
+    [SuppressCodecs("Lucene3x")]
     public class TestBlockJoinSorter : LuceneTestCase
     {
         private class FixedBitSetCachingWrapperFilter : CachingWrapperFilter

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestEarlyTermination.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/TestEarlyTermination.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestEarlyTermination.cs
index 077d200..5efd41e 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/TestEarlyTermination.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestEarlyTermination.cs
@@ -27,6 +27,7 @@ namespace Lucene.Net.Index.Sorter
      * limitations under the License.
      */
 
+    [SuppressCodecs("Lucene3x")]
     public class TestEarlyTermination : LuceneTestCase
     {
         private int numDocs;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestSortingMergePolicy.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Index/Sorter/TestSortingMergePolicy.cs b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestSortingMergePolicy.cs
index f429546..dd6a1ba 100644
--- a/src/Lucene.Net.Tests.Misc/Index/Sorter/TestSortingMergePolicy.cs
+++ b/src/Lucene.Net.Tests.Misc/Index/Sorter/TestSortingMergePolicy.cs
@@ -26,7 +26,8 @@ namespace Lucene.Net.Index.Sorter
      * See the License for the specific language governing permissions and
      * limitations under the License.
      */
-
+    
+    [SuppressCodecs("Lucene3x")]
     public class TestSortingMergePolicy : LuceneTestCase
     {
         private List<string> terms;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Misc/Misc/TestHighFreqTerms.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Misc/Misc/TestHighFreqTerms.cs b/src/Lucene.Net.Tests.Misc/Misc/TestHighFreqTerms.cs
index c579077..5b27e86 100644
--- a/src/Lucene.Net.Tests.Misc/Misc/TestHighFreqTerms.cs
+++ b/src/Lucene.Net.Tests.Misc/Misc/TestHighFreqTerms.cs
@@ -8,6 +8,7 @@ using System;
 
 namespace Lucene.Net.Misc
 {
+    [SuppressCodecs("Lucene3x")]
     public class TestHighFreqTerms : LuceneTestCase
     {
         private static IndexWriter writer = null;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs b/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs
index fab9d0d..3dce56f 100644
--- a/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs
+++ b/src/Lucene.Net.Tests.Queries/Function/TestDocValuesFieldSources.cs
@@ -14,7 +14,7 @@ using System.Globalization;
 
 namespace Lucene.Net.Tests.Queries.Function
 {
-    // [Util.LuceneTestCase.SuppressCodecs("Lucene3x")]
+    [SuppressCodecs("Lucene3x")]
     public class TestDocValuesFieldSources : LuceneTestCase
     {
         private void DoTest(DocValuesType type)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Queries/Function/TestLongNormValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Queries/Function/TestLongNormValueSource.cs b/src/Lucene.Net.Tests.Queries/Function/TestLongNormValueSource.cs
index a8e13c8..f459872 100644
--- a/src/Lucene.Net.Tests.Queries/Function/TestLongNormValueSource.cs
+++ b/src/Lucene.Net.Tests.Queries/Function/TestLongNormValueSource.cs
@@ -12,7 +12,7 @@ using NUnit.Framework;
 
 namespace Lucene.Net.Tests.Queries.Function
 {
-    // [Util.LuceneTestCase.SuppressCodecs("Lucene3x")]
+    [SuppressCodecs("Lucene3x")]
     public class TestLongNormValueSource : LuceneTestCase
     {
         internal static Directory dir;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs
index 85c6a55..321d910 100644
--- a/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs
@@ -32,6 +32,7 @@ namespace Lucene.Net.QueryParsers.Analyzing
      * limitations under the License.
      */
 
+    [SuppressCodecs("Lucene3x")] // binary terms
     [TestFixture]
     public class TestAnalyzingQueryParser : LuceneTestCase
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs
b/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs
index 0143911..e1c6b31 100644
--- a/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs
+++ b/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/AnalyzingInfixSuggesterTest.cs
@@ -36,7 +36,7 @@ namespace Lucene.Net.Search.Suggest.Analyzing
 
 
     // Test requires postings offsets:
-    //@SuppressCodecs({ "Lucene3x","MockFixedIntBlock","MockVariableIntBlock","MockSep","MockRandom"})
+    [SuppressCodecs("Lucene3x", "MockFixedIntBlock", "MockVariableIntBlock", "MockSep", "MockRandom")]
     public class AnalyzingInfixSuggesterTest : LuceneTestCase
     {
         public void TestBasic()

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/TestFreeTextSuggester.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/TestFreeTextSuggester.cs b/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/TestFreeTextSuggester.cs
index 64b7511..23da8d4 100644
--- a/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/TestFreeTextSuggester.cs
+++ b/src/Lucene.Net.Tests.Suggest/Suggest/Analyzing/TestFreeTextSuggester.cs
@@ -12,7 +12,7 @@ using System.Globalization;
 using System.IO;
 using System.Text;
 
-//@SuppressCodecs("Lucene3x")
+
 namespace Lucene.Net.Search.Suggest.Analyzing
 {
     /*
@@ -32,6 +32,7 @@ namespace Lucene.Net.Search.Suggest.Analyzing
      * limitations under the License.
      */
 
+    [SuppressCodecs("Lucene3x")]
     public class TestFreeTextSuggester : LuceneTestCase
     {
         [Test]

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Suggest/Suggest/DocumentDictionaryTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Suggest/Suggest/DocumentDictionaryTest.cs b/src/Lucene.Net.Tests.Suggest/Suggest/DocumentDictionaryTest.cs
index cea8347..2bbc3b6 100644
--- a/src/Lucene.Net.Tests.Suggest/Suggest/DocumentDictionaryTest.cs
+++ b/src/Lucene.Net.Tests.Suggest/Suggest/DocumentDictionaryTest.cs
@@ -29,6 +29,7 @@ namespace Lucene.Net.Search.Suggest
      * limitations under the License.
      */
 
+    [SuppressCodecs("Lucene3x")]
     public class DocumentDictionaryTest : LuceneTestCase
     {
         internal static readonly string FIELD_NAME = "f1";

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3527406b/src/Lucene.Net.Tests.Suggest/Suggest/DocumentValueSourceDictionaryTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Suggest/Suggest/DocumentValueSourceDictionaryTest.cs b/src/Lucene.Net.Tests.Suggest/Suggest/DocumentValueSourceDictionaryTest.cs
index 6508dc6..78a4f35 100644
--- a/src/Lucene.Net.Tests.Suggest/Suggest/DocumentValueSourceDictionaryTest.cs
+++ b/src/Lucene.Net.Tests.Suggest/Suggest/DocumentValueSourceDictionaryTest.cs
@@ -31,6 +31,7 @@ namespace Lucene.Net.Search.Suggest
      * limitations under the License.
      */
 
+    [SuppressCodecs("Lucene3x")]
     public class DocumentValueSourceDictionaryTest : LuceneTestCase
     {
         static readonly string FIELD_NAME = "f1";


Mime
View raw message