nim-chronos/tests
Jacek Sieka f5ff9e32ca
introduce asyncraises in transports/asyncsync (#470)
With these fixes, `transports`/`asyncsync` correctly propagate and document their raises information - generally, most transport functions (send etc) raise `TransportError` and `CancelledError` - `closeWait` is special in that it generally doesn't fail.

This PR introduces the syntax `Future[void].Raises([types])` to create the `InternalRaisesFuture` type with the correct encoding for the types - this allows it to be used in user code while retaining the possibility to change the internal representation down the line.

* introduce raising constraints on stream callbacks - these constraints now give a warning when called with a callback that can raise exceptions (raising callbacks would crash 
* fix fail and its tests, which wasn't always given a good generic match
* work around nim bugs related to macro expansion of generic types
* make sure transports raise only `TransportError`-derived exceptions (and `CancelledError`)
2023-11-15 09:38:48 +01:00
..
config.nims Add nimRawSetjmp define to config.nims (#285) 2022-06-14 01:02:33 +03:00
testaddress.nim Compile-time configuration (#371) 2023-03-31 07:35:04 +02:00
testall.nim Recover `poll` engine and add tests. (#421) 2023-08-01 12:56:08 +03:00
testasyncstream.c move test data to c file (#448) 2023-10-17 14:19:20 +02:00
testasyncstream.nim introduce asyncraises in transports/asyncsync (#470) 2023-11-15 09:38:48 +01:00
testbugs.nim introduce asyncraises in transports/asyncsync (#470) 2023-11-15 09:38:48 +01:00
testdatagram.nim introduce asyncraises in transports/asyncsync (#470) 2023-11-15 09:38:48 +01:00
testfut.nim Fix not enough memory on i386. (#467) 2023-11-10 07:42:36 +01:00
testfutures.nim Introduce `chronos/futures` (#405) 2023-06-07 20:04:07 +02:00
testhttpclient.nim Attempt to fix CI crash at Windows. (#465) 2023-11-13 13:14:21 +02:00
testhttpserver.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00
testmacro.nim introduce asyncraises in transports/asyncsync (#470) 2023-11-15 09:38:48 +01:00
testnet.nim exception warning fixes (#403) 2023-06-05 13:03:38 +02:00
testproc.bat Fix not enough memory on i386. (#467) 2023-11-10 07:42:36 +01:00
testproc.nim Fix not enough memory on i386. (#467) 2023-11-10 07:42:36 +01:00
testproc.sh Fix not enough memory on i386. (#467) 2023-11-10 07:42:36 +01:00
testratelimit.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00
testserver.nim introduce asyncraises in transports/asyncsync (#470) 2023-11-15 09:38:48 +01:00
testshttpserver.nim Unroll `defer`s and remove `break`s. (#440) 2023-08-09 10:57:49 +03:00
testsignal.nim Add facility to emulate signals on Windows. (#357) 2023-06-02 01:53:20 +03:00
testsoon.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00
teststream.nim introduce asyncraises in transports/asyncsync (#470) 2023-11-15 09:38:48 +01:00
testsync.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00
testthreadsync.nim Asynchronous thread notification mechanism. (#406) 2023-07-21 15:51:36 +03:00
testtime.nim Cancellation fixes and tests. (#445) 2023-09-15 19:38:39 +03:00
testutils.nim Fix not enough memory on i386. (#467) 2023-11-10 07:42:36 +01:00