MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / validate

Method validate

crates/cache/src/config.rs:505–513  ·  view source on GitHub ↗

validate values and fill in defaults

(&mut self)

Source from the content-addressed store, hash-verified

503
504 /// validate values and fill in defaults
505 pub(crate) fn validate(&mut self) -> Result<()> {
506 self.validate_directory_or_default()?;
507 self.validate_worker_event_queue_size();
508 self.validate_baseline_compression_level()?;
509 self.validate_optimized_compression_level()?;
510 self.validate_file_count_limit_percent_if_deleting()?;
511 self.validate_files_total_size_limit_percent_if_deleting()?;
512 Ok(())
513 }
514
515 fn validate_directory_or_default(&mut self) -> Result<()> {
516 if self.directory.is_none() {

Callers 6

run_testFunction · 0.45
from_fileMethod · 0.45
newMethod · 0.45
test_builder_defaultFunction · 0.45
compile_componentMethod · 0.45

Tested by 2

test_builder_defaultFunction · 0.36