service_test.go 287 B

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