This PR implements a subroutine mocking feature in testing VCL. Now we add three functions:
testing.mock
testing.resotre_mock
testing.restore_all_mocks
This mechanism is very similar to Jest-like mocking system but it is a tiny note that both mocking subroutine names must be specified as STRING - it's some reason from our subroutine detecting logic.
Fixes #316
This PR implements a subroutine mocking feature in testing VCL. Now we add three functions:
testing.mock
testing.resotre_mock
testing.restore_all_mocks
This mechanism is very similar to Jest-like mocking system but it is a tiny note that both mocking subroutine names must be specified as STRING - it's some reason from our subroutine detecting logic.