Paste a function and get a complete test file covering happy path, edge cases, error paths and async cancellation — in your test runner of choice.
test