invenia/Mocking.jl

Allows Julia function calls to be temporarily overloaded for purpose of testing

Juliatestingjuliamocking
This is stars and forks stats for /invenia/Mocking.jl repository. As of 04 May, 2024 this repository has 52 stars and 14 forks.

Mocking Allows Julia function calls to be temporarily overloaded for purpose of testing. Contents Usage Gotchas Overhead Usage Suppose you wrote the function randdev (UNIX only). How would you go about writing tests for it? function randdev(n::Integer) open("/dev/urandom") do fp reverse(read(fp, n)) end end The non-deterministic behaviour of this function makes it hard to test but we can write some tests dealing with the deterministic properties of the function: using Test using ...:...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
NREL-SIIP/PowerSystems.jlJuliaPython2630650
beacon-biosignals/Onda.jlJulia64040
msilva913/ECON-7800-ProgramsJulia5090
JuliaCloud/AWSS3.jlJulia440370
JuliaStats/StatsModels.jlJulia2440290
JuliaMolSim/DFTK.jlJuliaShell362+373+1
JuliaIO/Tar.jlJulia770190
AlgebraicJulia/Catlab.jlJulia5520530
JuliaFolds/Transducers.jlJulia4040220
MilesCranmer/SymbolicRegression.jlJuliaOther4600460