package contexttest
import "gvisor.dev/gvisor/pkg/sentry/kernel/contexttest"
Package contexttest provides a test context.Context which includes a dummy kernel pointing to a valid platform.
Index ¶
Functions ¶
func Context ¶
Context returns a Context that may be used in tests. Uses ptrace as the platform.Platform, and provides a stub kernel that only serves to point to the platform.
Source Files ¶
contexttest.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 4 hours ago –
Tools for package owners.