AutoworkDoubler๏
Experimental: Some methods may not be implemented and may be changed in future versions.
Inherits: RefCounted < Object
Creates test doubles for scenes and scripts.
Description๏
The AutoworkDoubler is responsible for generating test doubles, such as mocks and stubs, for use in unit tests.
Test doubles allow developers to replace real scenes or scripts with controlled substitutes, making it easier to isolate behavior and simulate specific conditions during testing.
Methods๏
double_scene(path: String) |
|
double_script(path: String) |
|
void |
set_spy(spy: AutoworkSpy) |
void |
set_stubber(stubber: AutoworkStubber) |
Method Descriptions๏
Variant double_scene(path: String) ๐
Creates a test double for the scene at the given path.
Variant double_script(path: String) ๐
Creates a test double for the script at the given path.
void set_spy(spy: AutoworkSpy) ๐
Sets the AutoworkSpy instance used by the doubler.
void set_stubber(stubber: AutoworkStubber) ๐
Sets the AutoworkStubber instance used by the doubler.