Struct xtest_data::Vcs [−][src]
pub struct Vcs<'paths> { /* fields omitted */ }Expand description
A builder for test data.
On a VCS copy of the surrounding package this will simply collect and validate the information.
However, when executed in an unpacked .crate then, instead, we provide a detailed report of
necessary data before we abort.
Implementations
Register some paths to rewrite to their location.
The paths will be registered internally. If the repository is local they will be rewritten to be relative to the manifest location. If the repository is a crate distribution then the paths will be sparsely checked out (meaning: only that path will be downloaded from the VCS working dir and you can’t expect any other files to be present).
Both of those actions will happen when you call [build()].
Register the path of a file.
The return value is a key that can later be used in FsData.