Skip to content

Commit 0019610

Browse files
committed
fix(test): Add conditional loading for doctestsetup
1 parent 0477b15 commit 0019610

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

test/doctestsetup.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
if !isdefined(@__MODULE__, :LOADED_HASH) || LOADED_HASH != hash(readlines(@__FILE__))
12
using TransferFunctions
23
using TransferFunctions: TransferFunctions as TF
34
using TransferFunctions.Apodization
@@ -35,4 +36,10 @@ setup_params!() = @eval begin
3536
nothing
3637
end
3738

38-
return nothing
39+
LOADED_HASH = hash(readlines(@__FILE__))
40+
41+
return nothing
42+
43+
else
44+
@info "Skipping doctest setup... Same hash"
45+
end

0 commit comments

Comments
 (0)