testStore.cc
Go to the documentation of this file.
allows testing of methods without having all the other components live
Definition: testStore.h:43
uint64_t currentCount() const override
the total number of objects stored right now
Definition: testStore.cc:58
int callback() override
called once every main loop iteration; TODO: Move to UFS code.
Definition: testStore.cc:20
int64_t maxObjectSize() const override
the maximum size of a storable object; -1 if unlimited
Definition: testStore.cc:64
uint64_t minSize() const override
the minimum size the store will shrink to via normal housekeeping
Definition: testStore.cc:46
Definition: Store.h:42
High-level store statistics used by mgr:info action. Used inside PODs!
Definition: StoreStats.h:14
Definition: StoreSearch.h:16
Definition: Controller.h:23
Definition: SquidString.h:26
implements test program's main() function while enabling customization
Definition: unitTestMain.h:26
Definition: testStore.h:22
void testSwapMetaTypeClassification()
Definition: testStore.cc:191
Definition: SquidConfig.h:62
static void checkKnownSwapMetaRawType(const RawSwapMetaType rawType)
check a raw swap meta field type within SwapMetaType range, excluding STORE_META_VOID
Definition: testStore.cc:159
constexpr bool IgnoredSwapMetaType(const RawSwapMetaType type)
Definition: SwapMeta.h:219
static void checkSwapMetaRawType(const RawSwapMetaType rawType)
check a given raw swap meta field type
Definition: testStore.cc:178
constexpr bool HonoredSwapMetaType(const RawSwapMetaType type)
Definition: SwapMeta.h:197
constexpr bool ReservedSwapMetaType(const RawSwapMetaType type)
Definition: SwapMeta.h:180
static void checkIgnorableSwapMetaRawType(const RawSwapMetaType rawType)
check rawType that may be ignored
Definition: testStore.cc:133
static void checkTooSmallSwapMetaRawType(const RawSwapMetaType rawType)
check a raw swap meta field type below SwapMetaType range or STORE_META_VOID
Definition: testStore.cc:147
constexpr bool DeprecatedSwapMetaType(const RawSwapMetaType type)
Definition: SwapMeta.h:158
void Init(Controller *root=nullptr)
initialize the storage module; a custom root is used by unit tests only
Definition: Controller.cc:945
static void checkTooBigSwapMetaRawType(const RawSwapMetaType rawType)
check a raw swap meta field type exceeding RawSwapMetaTypeTop()
Definition: testStore.cc:169
CPPUNIT_TEST_SUITE_REGISTRATION(TestStore)