package
Version:
v0.24.0
Opens a new window with list of versions in this module.
Published: Aug 15, 2025
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package buildtesting provides a pool of Go build environments for use in tests.
Prepare a new test environment, returning the path.
Run should be called from TestMain.
func TestMain(m *testing.M) { buildtesting.Run(m) }`)
Then use Get() to retrieve the pool.
Prepare a new test environment, returning the path.
When the test completes the environment will be returned to the pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.