ysugimoto / falco

falco is a VCL parser and linter dedicated to Fastly
MIT License
105 stars 29 forks source link

implement subroutine mocking feature #322

Closed ysugimoto closed 5 months ago

ysugimoto commented 5 months ago

Fixes #316

This PR implements a subroutine mocking feature in testing VCL. Now we add three functions:

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.