StagTest.SignalExpector¶
Inherits: RefCounted
Testing class for signal expectors. This class is thread-safe.
Properties¶
|
||
|
|
|
|
|
|
|
|
|
|
|
Methods¶
void |
_increment(…) vararg |
void |
assert_valid(extra_context: |
void |
assert_emitted(extra_context: |
void |
assert_not_emitted(extra_context: |
void |
assert_count(exact_call_count: |
void |
block_until(threshold: |
void |
reset() |
|
Property Descriptions¶
Signal _emitter 🔗
There is currently no description for this property. Please help us by contributing one!
String _emitter_name = "" 🔗
There is currently no description for this property. Please help us by contributing one!
int _count = 0 🔗
There is currently no description for this property. Please help us by contributing one!
String _context = "" 🔗
There is currently no description for this property. Please help us by contributing one!
Mutex _mutex = <unknown> 🔗
There is currently no description for this property. Please help us by contributing one!
Method Descriptions¶
void _increment(…) vararg 🔗
Increments the emitter count by 1.
void assert_valid(extra_context: String = “”) 🔗
Asserts that the emitter is not null.
void assert_emitted(extra_context: String = “”) 🔗
Asserts that the Signal was emitted at least once.
void assert_not_emitted(extra_context: String = “”) 🔗
Asserts that the Signal was not emitted at all.
void assert_count(exact_call_count: int, extra_context: String = “”) 🔗
Asserts that the Signal was emitted exactly exact_call_count times.
void block_until(threshold: int = 1, timeout_ms: int = 30000, extra_context: String = “”) 🔗
Blocks until either the emitter count or timeout (in milliseconds) is reached. Fails the test if the timeout was reached.
void reset() 🔗
Resets the expector state.
int get_count() 🔗
Returns the number of times the signal emitted.