bible-io 1.0.2

A Rust library for working with Bible text data structures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::Path;

/// Common test utilities for integration tests
pub mod test_utils {
    use super::*;

    pub fn get_kjv_json() -> Option<String> {
        let test_fixtures_path = "tests/fixtures/en_kjv.json";
        if Path::new(test_fixtures_path).exists() {
            return Some(test_fixtures_path.to_string());
        }
        None
    }
}