upstream: github.com/mirleft/ocaml-tls
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(E600): enforce test module conventions across packages

- ocaml-sqlite: merge generic_suite into suite, single export in .mli
- ocaml-tcpcl: add missing test_tcpcl.mli
- ocaml-tls: rename test_rng to mock_rng (helper, not test module)
- ocaml-tls: restructure test_tls_eio/unix stubs with test.ml runners
- ocaml-tomlt: restructure test_tomlt_{bytesrw,eio,unix} stubs with
test.ml runners and .mli files

+13 -9
+1 -1
eio/tests/fuzz.ml
··· 288 288 let actions = if quickstart then quickstart_actions @ actions else actions in 289 289 Eio_mock.Backend.run @@ fun () -> 290 290 Switch.run @@ fun sw -> 291 - let insecure_test_rng = Crypto_rng.v (module Test_rng) in 291 + let insecure_test_rng = Crypto_rng.v (module Mock_rng) in 292 292 Crypto_rng.set_default_generator insecure_test_rng; 293 293 let client_socket, server_socket = Mock_socket.create_pair () in 294 294 let server_flow =
eio/tests/test_rng.ml eio/tests/mock_rng.ml
eio/tests/test_rng.mli eio/tests/mock_rng.mli
+3 -3
test/eio/dune
··· 1 1 (test 2 - (name test_tls_eio) 2 + (name test) 3 3 (package tls-eio) 4 - (modules test_tls_eio) 5 - (libraries tls-eio)) 4 + (modules test test_tls_eio) 5 + (libraries tls-eio alcotest))
+1
test/eio/test.ml
··· 1 + let () = Alcotest.run "tls-eio" [ Test_tls_eio.suite ]
+1 -1
test/eio/test_tls_eio.ml
··· 1 - let () = () 1 + let suite = ("tls-eio", [])
+1
test/eio/test_tls_eio.mli
··· 1 + val suite : string * unit Alcotest.test_case list
+3 -3
test/unix/dune
··· 1 1 (test 2 - (name test_tls_unix) 2 + (name test) 3 3 (package tls) 4 - (modules test_tls_unix) 5 - (libraries tls tls.unix)) 4 + (modules test test_tls_unix) 5 + (libraries tls tls.unix alcotest))
+1
test/unix/test.ml
··· 1 + let () = Alcotest.run "tls-unix" [ Test_tls_unix.suite ]
+1 -1
test/unix/test_tls_unix.ml
··· 1 - let () = () 1 + let suite = ("tls-unix", [])
+1
test/unix/test_tls_unix.mli
··· 1 + val suite : string * unit Alcotest.test_case list