-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This implements the last solution outlined in #7. For some reason, it's a lot faster than I remember this approach being. TODO: - update docs to include section about reusing contexts - add note in docs to explain when kwargs are discarded - add tests for keyword arguments, discarding, and warning
- Loading branch information
1 parent
60de62a
commit 683b556
Showing
4 changed files
with
80 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Contexts | ||
|
||
using Core: kwftype | ||
|
||
using Cassette: Cassette, overdub, posthook, prehook, recurse, @context | ||
|
||
using ..SimpleMock: Metadata, should_mock, update! | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters