You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The unit tests and system call implementations have some awkward conversions between Register and the ErrorCode and ReturnVariant types. In particular, calling assert_eq!() on the results of a system call can be very awkward, as the type inference doesn't play well with the Into and PartialEq invocations involved.
After all the system calls are implemented in libtock_unittest and libtock_platform, I will do a survey of conversions to and from Register and see if I can refine them to make the code cleaner. This issue is to remind me to do that.
The text was updated successfully, but these errors were encountered:
329: Implement Subscribe in `libtock_unittest::fake::Kernel`. r=jrvanwhy a=jrvanwhy
Like #326 , this does not have a full unit test suite because it was getting too large. Instead, I'll be adding the unit tests that need additional infrastructure (a `fake::Driver`) later, and have a TODO to remind myself.
I added some conversions between `Register`, `ErrorCode`, and `ReturnVariant`. I'm not sure what these conversions should look like (some of the code is kind of awkward), so I opened #328 to take another look in the future.
Co-authored-by: Johnathan Van Why <[email protected]>
The unit tests and system call implementations have some awkward conversions between
Register
and theErrorCode
andReturnVariant
types. In particular, callingassert_eq!()
on the results of a system call can be very awkward, as the type inference doesn't play well with theInto
andPartialEq
invocations involved.After all the system calls are implemented in
libtock_unittest
andlibtock_platform
, I will do a survey of conversions to and fromRegister
and see if I can refine them to make the code cleaner. This issue is to remind me to do that.The text was updated successfully, but these errors were encountered: