taskfinder 2.15.0

A terminal user interface that extracts and displays tasks from plain text files, hooking into your default terminal-based editor for editing.
//! Functions that can be used in different test modules.
//! Given #[cfg(test)] attribute in main.
#![forbid(unsafe_code)]

use std::path::Path;

use crate::config::{self, Config};
use crate::modes::Mode;

pub fn make_test_config() -> Config {
    Config {
        path: Path::new("test_files/").to_path_buf(),
        num_tasks_log: Path::new("/tmp/tasks_log").to_path_buf(),
        file_extensions: config::Config::default_file_extensions(),
        days_to_stale: 365,
        include_completed: true,
        priority_markers: config::Config::default_priority_markers(),
        evergreen_file: Path::new("").to_path_buf(),
        start_mode: Mode::Tasks,
        overdue_blink: true,
    }
}