projects
/
go-signalcontext.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove ‘Signal’ from structure names
[go-signalcontext.git]
/
error_test.go
diff --git a/error_test.go
b/error_test.go
new file mode 100644
(file)
index 0000000..
eb347ef
--- /dev/null
+++ b/
error_test.go
@@ -0,0
+1,13
@@
+package signalcontext
+
+import (
+ "os"
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func TestError(t *testing.T) {
+ assert.EqualError(t, Error{os.Interrupt},
+ "received signal: "+os.Interrupt.String())
+}