mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
8f97d39dd2
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
15 lines
240 B
Go
15 lines
240 B
Go
package libcontainer
|
|
|
|
import (
|
|
"fmt"
|
|
"io/ioutil"
|
|
"testing"
|
|
)
|
|
|
|
func TestErrorDetail(t *testing.T) {
|
|
err := newGenericError(fmt.Errorf("test error"), SystemError)
|
|
if derr := err.Detail(ioutil.Discard); derr != nil {
|
|
t.Fatal(derr)
|
|
}
|
|
}
|