Function compare_or_save_testdata_with_config

Source
pub fn compare_or_save_testdata_with_config<T>(
    filename: &str,
    output: &T,
    config: TestdataConfig,
)
where T: Serialize + for<'a> Deserialize<'a> + PartialEq + Debug,
Expand description

Compares or saves the execution output to a testdata file with custom configuration.

This is a more flexible version of compare_or_save_testdata that allows specifying a custom testdata directory.

ยงArguments

  • filename - The name of the testdata file, relative to the testdata directory
  • output - The execution output to compare or save
  • config - Configuration for the test data comparison