Skip to content

Commit 85649da

Browse files
committed
Add stats.jl script
1 parent fd3de85 commit 85649da

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

scripts/stats.jl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright (c) 2025 Uwe Fechner
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
4+
# List all methods of VortexStepMethod
5+
using VortexStepMethod
6+
7+
exported_names = names(VortexStepMethod)
8+
exported_functions = filter(n -> isdefined(VortexStepMethod, n) && isa(getfield(VortexStepMethod, n), Function), exported_names)
9+
println("Exported methods:\n")
10+
total = 0
11+
for fun in exported_functions
12+
global total
13+
f = getfield(VortexStepMethod, fun)
14+
mes = methods(f)
15+
for me in mes
16+
println(split(repr(me),'@')[1])
17+
total += 1
18+
end
19+
end
20+
println("\nTotal: $total")
21+
22+
function check_exported_docs(mod::Module)
23+
exported_symbols = names(mod, all=false)
24+
doc_status = Dict{Symbol,Bool}()
25+
for sym in exported_symbols
26+
#if isa(getfield(mod, sym), Function)
27+
doc_status[sym] = Base.Docs.hasdoc(mod, sym)
28+
#end
29+
end
30+
return doc_status
31+
end
32+
33+
# Usage example:
34+
results = check_exported_docs(VortexStepMethod)
35+
undocumented = filter(kv -> !kv[2], results)
36+
println("\nUndocumented exported symbols: \n", keys(undocumented))

0 commit comments

Comments
 (0)