diff --git a/docs/docs.go b/docs/docs.go index 1ec12f30..7296e3b4 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -733,6 +733,10 @@ var SwaggerInfo = swaggerInfo{Schemes: []string{}} type s struct{} +func New() *s { + return &s{} +} + func (s *s) ReadDoc() string { t, err := template.New("swagger_info").Funcs(template.FuncMap{ "marshal": func(v interface{}) string { diff --git a/docs/docs_test.go b/docs/docs_test.go new file mode 100644 index 00000000..8aca42e8 --- /dev/null +++ b/docs/docs_test.go @@ -0,0 +1,15 @@ +package docs_test + +import ( + "testing" + + "github.com/anuvu/zot/docs" + . "github.com/smartystreets/goconvey/convey" +) + +func TestDocs(t *testing.T) { + Convey("Read docs", t, func() { + s := docs.New() + So(s.ReadDoc(), ShouldNotBeEmpty) + }) +}