Expose Filelist struct to lib top level

This commit is contained in:
Raamakrishnan 2020-01-27 21:24:52 +05:30
parent a97a6a3468
commit 81331461d4
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
pub mod line_parser;
pub mod file_parser;
use file_parser::Filelist;
pub use file_parser::Filelist;
use std::error::Error;
pub fn parse(path: &str) -> Result<Filelist, Box<dyn Error>> {

View file

@ -1,4 +1,4 @@
extern crate sv_filelist_parser;
use sv_filelist_parser;
use std::collections::HashMap;
#[test]
@ -8,7 +8,7 @@ fn simple_test() {
defines.insert("e".to_string(), "f".to_string());
defines.insert("c".to_string(), "d".to_string());
let filelist_exp = sv_filelist_parser::file_parser::Filelist {
let filelist_exp = sv_filelist_parser::Filelist {
files : vec!["testcase/file1.sv".to_string(),
"testcase/file2.sv".to_string(),
"testcase/file3.sv".to_string(),