We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am doing unit tests for my filter with DispatchHttp, something like this:
_, err = proxywasm.DispatchHttpCall(ctx.clusterName, headers, body, nil, ctx.timeout, ctx.callback) if err != nil { proxywasm.LogCriticalf("big error: %v", err) proxywasm.ResumeHttpRequest() return types.ActionContinue }
I don't know of a way to mock the DispatchHttpCall method in order to return an error so we can cover this part of the code.
Is there any way of doing this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am doing unit tests for my filter with DispatchHttp, something like this:
I don't know of a way to mock the DispatchHttpCall method in order to return an error so we can cover this part of the code.
Is there any way of doing this?
The text was updated successfully, but these errors were encountered: