plugintest

package
v0.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 9 Imported by: 0

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

func BuildPlugin(t *testing.T, cmdDir string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL