Skip to content

Commit

Permalink
1. [release:1.0.0]
Browse files Browse the repository at this point in the history
  • Loading branch information
just-do-halee committed Oct 19, 2021
1 parent 7efe7f9 commit ffd4681
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Test

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ main ]

jobs:
fmt:
Expand Down
26 changes: 13 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,20 @@ fn collect_files(

#[cfg(test)]
mod tests {
use super::*;
// use super::*;
#[test]
fn it_works() {
let c = CollectFiles("/Users/hwakyeom/programs/")
.with_depth(1)
.with_target_regex(".md$")
.with_hook(|path| path.with_extension("mutated"));
println!("{:#?}", c.collect());
println!(
"entry: {:?}\ndepth: {:?}\nhook: {:?}\n regex: {:?}",
c.as_root_dir(),
c.as_depth(),
c.as_hook(),
c.as_target_regex()
)
// let c = CollectFiles("/Users/hwakyeom/programs/")
// .with_depth(1)
// .with_target_regex(".md$")
// .with_hook(|path| path.with_extension("mutated"));
// println!("{:#?}", c.collect());
// println!(
// "entry: {:?}\ndepth: {:?}\nhook: {:?}\n regex: {:?}",
// c.as_root_dir(),
// c.as_depth(),
// c.as_hook(),
// c.as_target_regex()
// )
}
}

0 comments on commit ffd4681

Please sign in to comment.