Curtis Vogt

Results 388 comments of Curtis Vogt

The change here broke the test case on Julia 1.11+ which was testing for issue #108. I'll roll this change back temporarily and include it in a breaking release.

I've confirmed that [ContextVariablesX.jl](https://github.com/tkf/ContextVariablesX.jl) does fix the issue as demonstrated above. I'll work on a PR for this. @oxinabox I appreciate you bringing that package to my attention ❤️

Unfortunately using ContextVariablesX.jl doesn't play nice with `@test_logs` or `@test_deprecated` so using that had to be reverted.

Issue was fixed in https://github.com/JuliaTesting/Mocking.jl/pull/112 but requires Julia 1.11

The workaround in SafeTestsets.jl is to use an `include` in your `@safetestset` and utilize the `using Mocking` from within the `include`d file. Overall, this is an issue with SafeTestsets.jl and...

I like the idea of setting up test set that allows you to pass in a context. For the initial design I was planning on keeping `@patch` around which would...

Unfortunately, I don't have much free time to do this work at the moment and I expect I may get the time to do this work closer to December.

It's about time I gave an update on this work. Back during the JuliaCon 2019 I reviewed https://github.com/invenia/Mocking.jl/pull/60 and did some experimentation with Cassette based Mocking. That experimentation led to...

It was [mentioned](https://github.com/invenia/Mocking.jl/commit/8dba3a065c7b16eac4b1c9cfbec09759eeff85ca#r36714473) to try using `@inline` which helped somewhat: | Julia Version | Injection | Runtime (secs) | |:--------------|:----------|:---------------| | 1.0.5 | macro / rewritten | 5.174785 | |...

An approach like the would be possible but would make the macro processing more complicated than it is now. Something that is being looking into is using Cassette.jl to avoid...