LogStoreScenario class final
Random entries and queries for compareLogStores: the scenario every LogStore implementation is checked against.
Entries vary in time (few distinct moments, so that order for equal times is exercised), level, tags, call site, stack, error and typed attributes including nested values; texts mix Latin, umlauts and Cyrillic. Queries combine every kind of LogCondition (checked by the core's own test), both orders and small or no page limits. The same seed gives the same scenario, so a mismatch is reproducible by its seed.
Constructors
- LogStoreScenario(int seed)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
batch(
) → List< LogEntry> - A batch of 1, 2, 5 or 10 entries.
-
entry(
) → LogEntry -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
) → LogQuery -
removeBefore(
) → DateTime? - Whether to call removeBefore this round, and with which time.
-
retainNewest(
) → int? - Whether to call retainNewest this round, and with which count.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited