@@ -14,6 +14,7 @@ import (
1414 "github.com/danielgtaylor/huma/v2/adapters/humaecho"
1515 "github.com/danielgtaylor/huma/v2/adapters/humafiber"
1616 "github.com/danielgtaylor/huma/v2/adapters/humagin"
17+ "github.com/danielgtaylor/huma/v2/adapters/humago"
1718 "github.com/danielgtaylor/huma/v2/adapters/humahttprouter"
1819 "github.com/danielgtaylor/huma/v2/adapters/humamux"
1920 "github.com/danielgtaylor/huma/v2/humatest"
@@ -96,6 +97,7 @@ func TestAdapters(t *testing.T) {
9697 h .UseMiddleware (func (ctx huma.Context , next func (huma.Context )) {
9798 assert .Nil (t , ctx .TLS ())
9899 v := ctx .Version ()
100+
99101 if ! isFiber {
100102 assert .Equal (t , "HTTP/1.1" , v .Proto )
101103 assert .Equal (t , 1 , v .ProtoMajor )
@@ -129,6 +131,9 @@ func TestAdapters(t *testing.T) {
129131 {"fiber" , func () huma.API {
130132 return wrap (humafiber .New (fiber .New (), config ()), true , func (ctx huma.Context ) { humafiber .Unwrap (ctx ) })
131133 }},
134+ {"go" , func () huma.API {
135+ return wrap (humago .New (http .NewServeMux (), config ()), false , func (ctx huma.Context ) { humago .Unwrap (ctx ) })
136+ }},
132137 {"gin" , func () huma.API {
133138 return wrap (humagin .New (gin .New (), config ()), false , func (ctx huma.Context ) { humagin .Unwrap (ctx ) })
134139 }},
0 commit comments