mirror of https://github.com/docker/docs.git
Engine: don't export private testing utilities
This commit is contained in:
parent
847411a1ee
commit
ca6f0aa107
|
@ -15,7 +15,7 @@ func init() {
|
||||||
Register("dummy", func(job *Job) string { return ""; })
|
Register("dummy", func(job *Job) string { return ""; })
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTestEngine(t *testing.T) *Engine {
|
func newTestEngine(t *testing.T) *Engine {
|
||||||
// Use the caller function name as a prefix.
|
// Use the caller function name as a prefix.
|
||||||
// This helps trace temp directories back to their test.
|
// This helps trace temp directories back to their test.
|
||||||
pc, _, _, _ := runtime.Caller(1)
|
pc, _, _, _ := runtime.Caller(1)
|
||||||
|
@ -38,5 +38,5 @@ func NewTestEngine(t *testing.T) *Engine {
|
||||||
}
|
}
|
||||||
|
|
||||||
func mkJob(t *testing.T, name string, args ...string) *Job {
|
func mkJob(t *testing.T, name string, args ...string) *Job {
|
||||||
return NewTestEngine(t).Job(name, args...)
|
return newTestEngine(t).Job(name, args...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue