fn fixtures_from_files(files: Vec<&str>) -> Vec<FixtureFile<Tz>> {
        let mut fixture_files: Vec<FixtureFile<Tz>> = vec![];
        for f in files {
            let fixture = FixtureFile {
                path: f.to_string(),
                file_name: Path::new(f)
                    .file_name()
                    .unwrap()
                    .to_str()
                    .unwrap()
                    .to_string(),
                content: File::open(f).unwrap(),
                insert_sqls: vec![],
            };
            fixture_files.push(fixture);
        }
        fixture_files
    }
/// Set fixture file content to FixtureFile struct.
Set fixture file content to FixtureFile struct.
Set fixture file content to FixtureFile struct .
fn fixtures_from_files(files: Vec<&str>) -> Vec<FixtureFile<Tz>> {
        let mut fixture_files: Vec<FixtureFile<Tz>> = vec![];
        for f in files {
            let fixture = FixtureFile {
                path: f.to_string(),
                file_name: Path::new(f)
                    .file_name()
                    .unwrap()
                    .to_str()
                    .unwrap()
                    .to_string(),
                content: File::open(f).unwrap(),
                insert_sqls: vec![],
            };
            fixture_files.push(fixture);
        }
        fixture_files
    }
fn fixtures_from_files ( files : Vec < & str > ) -> Vec < FixtureFile < Tz > > { let mut fixture_files : Vec < FixtureFile < Tz > > = vec ! [ ] ; for f in files { let fixture = FixtureFile { path : f . to_string ( ) , file_name : Path :: new ( f ) . file_name ( ) . unwrap ( ) . to_str ( ) . unwrap ( ) . to_string ( ) , content : File :: open ( f ) . unwrap ( ) , insert_sqls : vec ! [ ] , } ; fixture_files . push ( fixture ) ; } fixture_files }
Set fixture file content to FixtureFile struct.
Set fixture file content to FixtureFile struct .
files
Vec<&str>
files
Vec<&str>