| 1234567891011121314 |
- package restful_api
- 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")
- }
|