1
2
3
4
5
6
7
8
9
10
11
12
13
14
| package restfulapi
|
| import (
| "reflect"
| "testing"
|
| "github.com/stretchr/testify/assert"
| )
|
| func TestTypeReturnAnonymousType(t *testing.T) {
| service := restfulService{}
| serviceType := service.Type()
| assert.Empty(t, reflect.TypeOf(serviceType).Name(), "must return anonymous type")
| }
|
|