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 ...:...
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 ...:...
repo | techs | stars | weekly | forks | weekly |
---|---|---|---|---|---|
NREL-SIIP/PowerSystems.jl | JuliaPython | 263 | 0 | 65 | 0 |
beacon-biosignals/Onda.jl | Julia | 64 | 0 | 4 | 0 |
msilva913/ECON-7800-Programs | Julia | 5 | 0 | 9 | 0 |
JuliaCloud/AWSS3.jl | Julia | 44 | 0 | 37 | 0 |
JuliaStats/StatsModels.jl | Julia | 244 | 0 | 29 | 0 |
JuliaMolSim/DFTK.jl | JuliaShell | 362 | +3 | 73 | +1 |
JuliaIO/Tar.jl | Julia | 77 | 0 | 19 | 0 |
AlgebraicJulia/Catlab.jl | Julia | 552 | 0 | 53 | 0 |
JuliaFolds/Transducers.jl | Julia | 404 | 0 | 22 | 0 |
MilesCranmer/SymbolicRegression.jl | JuliaOther | 460 | 0 | 46 | 0 |