whitequark / rust-xdg

A library that makes it easy to follow the X Desktop Group specifications
https://wiki.freedesktop.org/www/Specifications/
Apache License 2.0
146 stars 29 forks source link

Enable doctests #51

Closed nickelc closed 1 year ago

nickelc commented 1 year ago

The doctests can be enabled by adding the necessary initialization code and hiding it with a leading #.

Doc-tests ``` Doc-tests xdg running 4 tests test src/lib.rs - BaseDirectories (line 76) - compile ... ok test src/lib.rs - BaseDirectories::with_profile (line 238) ... ok test src/lib.rs - BaseDirectories (line 49) ... ok test src/lib.rs - BaseDirectories (line 56) ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.34s ```
whitequark commented 1 year ago

Thanks!