Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

safeguard-stress

Misbehaves on demand: spin in tight loops, return huge outputs, try to allocate past the wasm memory cap. The Go-side safeguard tests drive these branches to verify the host's per-call timeouts, output-size caps, and wasm memory limit actually kick in.

Demonstrates: nothing useful for a real plugin. This is a test fixture for the host's sandbox enforcement. Useful to read if you want to understand what the host protects against, and how @plugin.filter_chat_message, @plugin.on_chat_message, and @plugin.on_http_request (with and without a path) all route under load.