mirror of
https://github.com/supleed2/sv-filelist-parser.git
synced 2024-12-22 21:35:49 +00:00
Expose Filelist struct to lib top level
This commit is contained in:
parent
a97a6a3468
commit
81331461d4
|
@ -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>> {
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue