mirror of
https://github.com/genuinetools/reg.git
synced 2024-07-04 12:34:17 -04:00
8e5eba8735
Signed-off-by: Jess Frazelle <acidburn@microsoft.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)
|
|
}
|
|
}
|