Module files

Source
Expand description

Library of steps for handling files in the data dir.

The files step library is intended to help with standard operations which people might need when writing subplot scenarios which use embedded files.

Re-exports§

pub use super::datadir::Datadir;
pub use crate::prelude::*;

Modules§

create_from_embedded
Create a file on disk from an embedded file
create_from_embedded_with_other_name
Create a file on disk from an embedded file with a given name
create_from_text
Create a file with some given text as its content
file_contains
Check if a file contains a given sequence of characters
file_does_not_exist
Check for absence of a file
file_doesnt_contain
Check if a file lacks a given sequence of characters
file_exists
Check for a file
file_match
Check if two files match
file_matches_regex
Check if a file’s content matches the given regular expression
has_different_metadata
Check that a given file’s metadata has changed since we remembered it
has_remembered_metadata
Check if a given file’s metadata matches our memory of it
make_directory
Make a directory
mtime_is_ancient
Check if the given file is very old
mtime_is_recent
Check if the given file has been modified “recently”
only_these_exist
Check if a set of files are the only files in the datadir
path_does_not_exist
Check that a directory does not exist
path_exists
Check that a directory exists
path_is_empty
Check that a directory exists and is empty
path_is_not_empty
Check that a directory exists and is not empty
remember_metadata
Examine the given file and remember its metadata for later
remove_directory
Remove a directory
touch
Touch a given file
touch_with_timestamp
Touch a file to have a specific timestamp as its modified time

Structs§

Files
Context data for the files step library