MockTicketState class

Mocktail mock for TicketState.

Implemented types

Constructors

MockTicketState()

Properties

ggLog → GgLog
Logger used for diagnostic output.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

currentHash({required List<Node> subs, bool ignoreUnstaged = false}) → Future<int>
Returns the aggregated 64-bit hash that summarizes the state of all repositories inside the ticket.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readSuccess({required Directory ticketDir, required List<Node> subs, required String key, bool ignoreUnstaged = false}) → Future<bool>
Returns true if the cached success key in <ticketDir>/.gg.json matches the current ticket hash.
inherited
reset({required Directory ticketDir}) → Future<void>
Removes the cached success state for the ticket.
inherited
toString() → String
A string representation of this object.
inherited
writeSuccess({required Directory ticketDir, required List<Node> subs, required String key, bool ignoreUnstaged = false}) → Future<void>
Writes the current ticket hash as success for key into <ticketDir>/.gg.json. Existing keys are preserved.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited