This commit is contained in:
parent
359177a4c4
commit
7fa62ef1f9
@ -6,7 +6,7 @@ use std::sync::Arc;
|
|||||||
use crate::law::{self, responsible::*};
|
use crate::law::{self, responsible::*};
|
||||||
use crate::law::{ClassifierApplicable, LawBuilder};
|
use crate::law::{ClassifierApplicable, LawBuilder};
|
||||||
use crate::misc::Error;
|
use crate::misc::Error;
|
||||||
use crate::risparser::paragraph::Parser;
|
use crate::paragraph::Parser;
|
||||||
|
|
||||||
// TODO: more generic
|
// TODO: more generic
|
||||||
fn create_classifier(match_function: &str) -> Result<ClassifierApplicable, Error> {
|
fn create_classifier(match_function: &str) -> Result<ClassifierApplicable, Error> {
|
||||||
|
@ -7,7 +7,7 @@ use std::{
|
|||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{config::Config, misc::Error, risparser::overview::parse};
|
use crate::{config::Config, misc::Error, overview::parse};
|
||||||
|
|
||||||
pub mod responsible;
|
pub mod responsible;
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod law;
|
|
||||||
pub mod misc;
|
pub mod misc;
|
||||||
pub mod risparser;
|
|
||||||
|
pub mod law;
|
||||||
|
pub mod overview;
|
||||||
|
pub mod paragraph;
|
||||||
|
@ -29,7 +29,7 @@ use ris_structure::OgdSearchResult;
|
|||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// use risp::risparser::overview::parse;
|
/// use risp::overview::parse;
|
||||||
///
|
///
|
||||||
/// let list_with_xml_links_to_paragraphs = parse(10001905).unwrap();
|
/// let list_with_xml_links_to_paragraphs = parse(10001905).unwrap();
|
||||||
/// assert_eq!(list_with_xml_links_to_paragraphs.len(), 31); // TEG has 31 paragraphs
|
/// assert_eq!(list_with_xml_links_to_paragraphs.len(), 31); // TEG has 31 paragraphs
|
||||||
@ -128,7 +128,7 @@ fn fetch_page(overview_id: usize, page: usize) -> Result<String, Error> {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::risparser::overview::parse;
|
use crate::overview::parse;
|
||||||
use pretty_assertions::assert_eq;
|
use pretty_assertions::assert_eq;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
|
@ -1,4 +0,0 @@
|
|||||||
//! This deals with accessing RIS data.
|
|
||||||
|
|
||||||
pub mod overview;
|
|
||||||
pub mod paragraph;
|
|
Loading…
Reference in New Issue
Block a user