Documentation
¶
Overview ¶
Package plugintest drives database plugins in external mode: it builds the plugin's cmd binary, loads it through a Manager (handshake, policy, script-shim connect wrappers, object protocol) and evaluates a script against it — the full wire path a real deployment uses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPlugin ¶
BuildPlugin compiles the plugin command at cmdDir (e.g. "./cmd") into a temp binary and returns its path. The binary is removed with the test.
func External ¶
func External(t *testing.T, binPath string, policy *plugin.Policy, script string) (object.Object, error)
External evaluates script against a fresh interpreter with the compiled plugin loaded as an external process carrying policy. It exercises the handshake (including policy delivery), the generated script library, the connect wrapper, and object method calls over the wire.
Types ¶
This section is empty.