Class UZagalaSpecExamplesCounter#
Defined in File ZagalaSpecExamplesCounter.h
Inheritance Relationships#
Base Type#
public UObject
Class Documentation#
-
class UZagalaSpecExamplesCounter : public UObject#
System Under Test for the Counter example feature.
Demonstrates a simple stateful object whose operations are driven through the full ZagalaSpec execution stack (execution step → DSL chain link → protocol driver chain link → SUT).
Increment(Amount) returns false and leaves state unchanged when Amount < 0. GetLastOperationSucceeded() reflects whether the most recent Increment call succeeded.
Public Functions
-
UZagalaSpecExamplesCounter(const FObjectInitializer &ObjectInitializer = FObjectInitializer::Get())#
-
bool Increment(int32 Amount)#
Increases the counter by Amount.
- Parameters:
Amount – The non-negative value to add to the counter.
- Returns:
true if the increment was applied; false if Amount < 0 (state unchanged).
-
void Reset()#
Resets the counter value to zero.
Always succeeds.
-
int32 GetValue() const#
Returns the current counter value.
- Returns:
The current counter value.
-
UZagalaSpecExamplesCounter(const FObjectInitializer &ObjectInitializer = FObjectInitializer::Get())#