summaryrefslogtreecommitdiff
path: root/_old/entry_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-09-17 13:35:48 +0300
committerValery Piashchynski <[email protected]>2020-09-17 13:35:48 +0300
commit08d6b6b7f773f83b286cd48c1a0fbec9a62fb42b (patch)
treeafd077d7a3a22ed0999773f861d4c48d68e26b68 /_old/entry_test.go
parent0af502835616774a8b306596e4d1a8c5843b6bc8 (diff)
Move old container to the _old folder
Diffstat (limited to '_old/entry_test.go')
-rw-r--r--_old/entry_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/_old/entry_test.go b/_old/entry_test.go
new file mode 100644
index 00000000..24538561
--- /dev/null
+++ b/_old/entry_test.go
@@ -0,0 +1,16 @@
+package _old
+
+import (
+ "github.com/stretchr/testify/assert"
+ "testing"
+)
+
+func TestEntry_CanServeFalse(t *testing.T) {
+ e := &entry{svc: nil}
+ assert.False(t, e.canServe())
+}
+
+func TestEntry_CanServeTrue(t *testing.T) {
+ e := &entry{svc: &testService{}}
+ assert.True(t, e.canServe())
+}