summaryrefslogtreecommitdiff
path: root/service/entry_test.go
blob: 67f982bad6d52e67e296fef01e5256e38f4c0185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package service

import (
	"testing"
	"github.com/stretchr/testify/assert"
)

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())
}