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-20250702182429-85e76111eb28 (latest)
- Published
- Jul 2, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.