summaryrefslogtreecommitdiff
path: root/morphology-img/tests/config.rs
diff options
context:
space:
mode:
authorjacksonfu14 <jackson@fashionunited.com>2025-11-17 17:21:40 +0100
committerJackson Moore <jacksonmoore@tuta.io>2025-11-17 17:21:40 +0100
commit73febb9177d86596522a4b7017ba6c3004826970 (patch)
treec722037db060a0ee8d8a76101786e5b1d7b1f224 /morphology-img/tests/config.rs
parente11602236c10467bbba4bee6faaabf49265b8f53 (diff)
refactor: call lilypond once per batch
Diffstat (limited to 'morphology-img/tests/config.rs')
-rw-r--r--morphology-img/tests/config.rs47
1 files changed, 2 insertions, 45 deletions
diff --git a/morphology-img/tests/config.rs b/morphology-img/tests/config.rs
index 7cc71cb..0ea1b0c 100644
--- a/morphology-img/tests/config.rs
+++ b/morphology-img/tests/config.rs
@@ -242,57 +242,14 @@ fn test_max_batch_size_field_is_public() {
}
#[test]
-fn test_default_parallel_is_false() {
- let config = RenderConfig::default();
- assert!(!config.parallel);
-}
-
-#[test]
-fn test_builder_parallel_true() {
- let config = RenderConfig::new("output")
- .parallel(true);
-
- assert!(config.parallel);
- assert_eq!(config.output_dir, PathBuf::from("output"));
-}
-
-#[test]
-fn test_builder_parallel_false() {
- let config = RenderConfig::new("output")
- .parallel(false);
-
- assert!(!config.parallel);
-}
-
-#[test]
-fn test_builder_parallel_overwrites() {
- let config = RenderConfig::new("output")
- .parallel(true)
- .parallel(false); // Override previous value
-
- assert!(!config.parallel);
-}
-
-#[test]
-fn test_builder_with_all_options_including_parallel() {
+fn test_builder_with_all_options() {
let config = RenderConfig::new("my-output")
.keep_temp_files(true)
.lilypond_binary("/usr/bin/lilypond")
- .max_batch_size(25)
- .parallel(true);
+ .max_batch_size(25);
assert_eq!(config.output_dir, PathBuf::from("my-output"));
assert!(config.keep_temp_files);
assert_eq!(config.lilypond_binary, PathBuf::from("/usr/bin/lilypond"));
assert_eq!(config.max_batch_size, Some(25));
- assert!(config.parallel);
-}
-
-#[test]
-fn test_parallel_field_is_public() {
- let config = RenderConfig::new("output").parallel(true);
-
- // Should be able to access field directly
- let _parallel = config.parallel;
- assert!(_parallel);
}