Method | 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 |
Method | 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 ( |
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.
|
public static CheckPaths ( ITaxonomyWriter tw ) : void | ||
tw | ITaxonomyWriter | |
return | void |
public static FillTaxonomy ( ITaxonomyWriter tw ) : void | ||
tw | ITaxonomyWriter | |
return | void |
public static FillTaxonomyCheckPaths ( ITaxonomyWriter tw ) : void | ||
tw | ITaxonomyWriter | |
return | void |
public static Showcat ( string path ) : string | ||
path | string | |
return | string |