C# Class Lucene.Net.Facet.Taxonomy.TestTaxonomyCombined

Inheritance: FacetTestCase
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
CheckPaths ( ITaxonomyWriter tw ) : void
FillTaxonomy ( ITaxonomyWriter tw ) : void

fillTaxonomy adds the categories in the categories[] array, and asserts that the additions return exactly the ordinals (in the past - paths) specified in expectedPaths[]. Note that this assumes that fillTaxonomy() is called on an empty taxonomy index. Calling it after something else was already added to the taxonomy index will surely have this method fail.

FillTaxonomyCheckPaths ( ITaxonomyWriter tw ) : void

fillTaxonomyCheckPaths adds the categories in the categories[] array, and asserts that the additions return exactly paths specified in expectedPaths[]. This is the same add fillTaxonomy() but also checks the correctness of getParent(), not just addCategory(). Note that this assumes that fillTaxonomyCheckPaths() is called on an empty taxonomy index. Calling it after something else was already added to the taxonomy index will surely have this method fail.

Showcat ( string path ) : string

Private Methods

Méthode Description
AssertConsistentYoungestChild ( FacetLabel abPath, int abOrd, int abYoungChildBase1, int abYoungChildBase2, int retry, int numCategories ) : void
CheckWriterParent ( TaxonomyReader tr, ITaxonomyWriter tw ) : void
Showcat ( FacetLabel path ) : string
TestChildrenArrays ( ) : void
TestChildrenArraysGrowth ( ) : void
TestChildrenArraysInvariants ( ) : void
TestNrt ( ) : void
TestReaderBasic ( ) : void
TestReaderParent ( ) : void
TestRootOnly ( ) : void
TestRootOnly2 ( ) : void
TestSeparateReaderAndWriter ( ) : void
TestSeparateReaderAndWriter2 ( ) : void
TestTaxonomyReaderRefreshRaces ( ) : void
TestWriter ( ) : void
TestWriterCheckPaths ( ) : void
TestWriterCheckPaths2 ( ) : void
TestWriterLock ( ) : void
TestWriterParent1 ( ) : void
TestWriterParent2 ( ) : void
TestWriterSimpler ( ) : void
TestWriterTwice ( ) : void
TestWriterTwice2 ( ) : void
TestWriterTwice3 ( ) : void
stackTraceStr ( Exception error ) : string

Grab the stack trace into a string since the exception was thrown in a thread and we want the assert outside the thread to show the stack trace in case of failure.

Method Details

CheckPaths() public static méthode

public static CheckPaths ( ITaxonomyWriter tw ) : void
tw ITaxonomyWriter
Résultat void

FillTaxonomy() public static méthode

fillTaxonomy adds the categories in the categories[] array, and asserts that the additions return exactly the ordinals (in the past - paths) specified in expectedPaths[]. Note that this assumes that fillTaxonomy() is called on an empty taxonomy index. Calling it after something else was already added to the taxonomy index will surely have this method fail.
public static FillTaxonomy ( ITaxonomyWriter tw ) : void
tw ITaxonomyWriter
Résultat void

FillTaxonomyCheckPaths() public static méthode

fillTaxonomyCheckPaths adds the categories in the categories[] array, and asserts that the additions return exactly paths specified in expectedPaths[]. This is the same add fillTaxonomy() but also checks the correctness of getParent(), not just addCategory(). Note that this assumes that fillTaxonomyCheckPaths() is called on an empty taxonomy index. Calling it after something else was already added to the taxonomy index will surely have this method fail.
public static FillTaxonomyCheckPaths ( ITaxonomyWriter tw ) : void
tw ITaxonomyWriter
Résultat void

Showcat() public static méthode

public static Showcat ( string path ) : string
path string
Résultat string