restructure project
All checks were successful
CI/CD Pipeline / test (push) Successful in 1m35s

This commit is contained in:
philipp 2024-02-06 11:45:44 +01:00
parent 359177a4c4
commit 7fa62ef1f9
8 changed files with 8 additions and 10 deletions

View File

@ -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> {

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -1,4 +0,0 @@
//! This deals with accessing RIS data.
pub mod overview;
pub mod paragraph;