Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove version branching
  • Loading branch information
ZacLN committed Jun 24, 2020
commit 3fc43d1983c45097decf5d2314ae2bb900575f69
10 changes: 3 additions & 7 deletions src/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,9 @@ maybe_lookup(x, server) = x isa SymbolServer.VarRef ? SymbolServer._lookup(x, ge

function is_in_test_dir_of_package(path::String)
try # Safe failure - attempts to read disc.
if VERSION < v"1.1"
return false
else
spaths = splitpath(path)
if (i = findfirst(==("test"), spaths)) !== nothing && "src" in readdir(joinpath(spaths[1:i-1]...))
return true
end
spaths = splitpath(path)
if (i = findfirst(==("test"), spaths)) !== nothing && "src" in readdir(joinpath(spaths[1:i-1]...))
return true
end
return false
catch
Expand Down