httpassert:用于golang的http响应主体断言工具 源码
HTTP ASSERT 用于golang的HTTP响应主体断言工具。 安装 go get github.com/zgs225/httpassert 例子 func TestSomeHTTPEndpoint ( t * testing. T ) { req := httptest . NewRequest ( "GET" , "http://localhost/users?page=2" , nil ) res := httptest . NewRecord () someHttpServer . ServeHTTP ( res , req ) expected := Response { Total : 10 , Current : 2 , Items : [] User { { Name : "John" ,
文件列表
httpassert-main.zip
(预估有个29文件)
httpassert-main
any.go
156B
compare_complex_test.go
335B
go.mod
45B
compare_map_test.go
950B
render_type_test.go
2KB
.github
workflows
go.yml
615B
render_value_test.go
2KB
暂无评论