JuliaDocs/Documenter.jl

Easier doctests of non-exported functions

Open

#2 126 ouverte le 21 mai 2023

Voir sur GitHub
 (9 commentaires) (0 réactions) (0 assignés)Julia (910 stars) (513 forks)batch import
Topic: UsabilityType: Enhancementhelp wanted

Description

Hello,

I've recently started adding more doctests to unexported functions in my code, and I seem to be repeating the same boilerplate-y setup quite a bit, e.g.

"""
    parsechecksum(checksum::String)
    
...text...

```jldoctest; setup = :(import DataToolkitCommon.Store.parsechecksum)
julia> parsechecksum("crc32c:9c0188ee")
(:crc32c, 0x9c0188ee)
```
"""

Is there some way this boilerplate could be avoided?

Guide contributeur