# README

Test framework for proxy-wasm-go-sdk

Using proxytest, you can test your extension with the official command:

go test ./...

This framework emulates the expected behavior of Envoyproxy, and you can test your extensions without running Envoy. For detail, see examples/*/main_test.go.

Note that we have not covered all the functionality, and the API is very likely to change in the future.

# Functions

NewEmulatorOption creates a new EmulatorOption.
NewHostEmulator returns a new HostEmulator that can be used to test a plugin.
NewWasmVMContext returns a types.VMContext that delegates plugin invocations to the provided compiled wasm binary.

# Constants

TODO: support multiple pluginContext.

# Structs

EmulatorOption is an option that can be passed to NewHostEmulator.

# Interfaces

HostEmulator implements the host side of proxy-wasm.
WasmVMContext is a VMContext that delegates execution to a compiled wasm binary.