summaryrefslogtreecommitdiff
path: root/_old/entry_test.go
diff options
context:
space:
mode:
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())
+}