]> git.huck.website - metaforge.git/commitdiff
changed: build_dir() -> build_site to avoid confusion
authorHuck Boles <huck@huck.website>
Sat, 20 May 2023 17:34:45 +0000 (12:34 -0500)
committerHuck Boles <huck@huck.website>
Sat, 20 May 2023 17:34:45 +0000 (12:34 -0500)
benches/dir.rs
tests/build_dir.rs

index 098f75345db719d8267528a2372b7bb2f9f2cebc..7200a94f7b17abdb1d6a96734f38c8c1201b0cd1 100644 (file)
@@ -18,7 +18,7 @@ pub fn build_dir(c: &mut Criterion) {
         }
 
         std::fs::create_dir(&opts.build).expect("create build dir");
-        b.iter(|| metaforge::build_dir(black_box(&opts)).unwrap())
+        b.iter(|| metaforge::build_site(black_box(&opts)).unwrap())
     });
 }
 
index 5bf408ac8b3588a1e47c55bcc54361cc3f9f1f11..c2253c46b2eb9c9b985930076398b4011028727d 100644 (file)
@@ -13,7 +13,7 @@ fn build_test_site() -> Result<()> {
     opts.pattern = dir.join("pattern");
     opts.clean = true;
 
-    metaforge::build_dir(&opts)?;
+    metaforge::build_site(&opts)?;
 
     assert!(opts.build.join("unit_tests").exists());
     assert!(opts