Skip to content

v0.1.11

Compare
Choose a tag to compare
@siller174 siller174 released this 13 Feb 12:15
· 54 commits to master since this release
a91de3b

NEW

Require validation. #37

implements the same assertions as the Assert, but stops test execution when a test fails.

  • RequireBody
  • RequireBodyT
  • RequireResponse
  • RequireResponseT
  • RequireHeaders
  • RequireHeadersT

Implement query builder

  • cute.WithQueryKV("socks", "42")
  • cute.WithQuery(map[string][]string{"hello": {"Denis", "my friend", "MAAA FREEEND"}})
		RequestBuilder(
			cute.WithURI("https://jsonplaceholder.typicode.com/posts/1/comments"),
			cute.WithQueryKV("socks", "42"), <--- NEW METHOD
			cute.WithQuery(map[string][]string{"hello": {"Denis", "my friend", "MAAA FREEEND"}}), <--- NEW METHOD
			cute.WithMethod(http.MethodGet),
		).