mirror of
https://github.com/c-cube/ezcurl.git
synced 2025-12-06 11:15:44 -05:00
wip: tests
This commit is contained in:
parent
e7a862d8c4
commit
ec0871ef69
2 changed files with 14 additions and 0 deletions
11
test/picos/basic_test.ml
Normal file
11
test/picos/basic_test.ml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
let () =
|
||||||
|
Picos_mux_fifo.run @@ fun () ->
|
||||||
|
match
|
||||||
|
Ezcurl_picos.get
|
||||||
|
~url:
|
||||||
|
"https://archive.softwareheritage.org/api/1/content/sha1_git:7bdf38d4468c114206c9b6ebd9cf1176e085d346/"
|
||||||
|
()
|
||||||
|
with
|
||||||
|
| Error (code, msg) ->
|
||||||
|
Format.eprintf "curl error: code `%s` (%s)@." (Curl.strerror code) msg
|
||||||
|
| Ok _response -> Format.printf "OK@."
|
||||||
3
test/picos/dune
Normal file
3
test/picos/dune
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(test
|
||||||
|
(name basic_test)
|
||||||
|
(libraries ezcurl_picos picos_mux.fifo))
|
||||||
Loading…
Add table
Reference in a new issue