Namespace Lucene.Net.Store
Binary i/o API, used for all index data.
Classes
BaseDirectoryTestCase
Base class for per-Directory tests.
BaseDirectoryWrapper
Calls check index on dispose.
Failure
Objects that represent fail-able conditions. Objects of a derived
class are created and registered with the mock directory. After
register, each object will be invoked once for each first write
of a file, giving the object a chance to throw an
FakeIOException
Use this when throwing fake
MockDirectoryWrapper
This is a Directory Wrapper that adds methods intended to be used only by unit tests. It also adds a number of features useful for testing:
-
Instances created by New
Directory() are tracked to ensure they are disposed by the test. -
When a Mock
Directory is disposed, it will throw an exception if it has any open files against it (with a stacktrace indicating where they were opened from).Wrapper -
When a Mock
Directory is disposed, it runsWrapper to test if the index was corrupted. -
Mock
Directory simulates some "features" of Windows, such as refusing to write/delete to open files.Wrapper
MockIndexInputWrapper
Used by Mock
MockIndexOutputWrapper
Used by Mock
MockLockFactoryWrapper
Used by Mock
TestHelper
This class provides access to namespace-level features defined in the Store namespace. It is used for testing only.
Enums
Throttling
Enum for controlling hard disk throttling. Set via Throttling
WARNING: can make tests very slow.