summaryrefslogtreecommitdiff
path: root/_old/entry_test.go
blob: 24538561e1a21875af7d4ba5867e68eb64ce11d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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())
}