[tests] Refine trait names

This commit is contained in:
Ming-Hung Tsai
2021-08-31 00:19:44 +08:00
parent 47d39d1efa
commit 737cf2f67d
9 changed files with 28 additions and 26 deletions

View File

@@ -70,16 +70,16 @@ impl<'a> InputProgram<'a> for ThinRestore {
}
impl<'a> OutputProgram<'a> for ThinRestore {
fn file_not_found() -> &'a str {
msg::FILE_NOT_FOUND
}
fn missing_output_arg() -> &'a str {
msg::MISSING_OUTPUT_ARG
}
}
impl<'a> BinaryOutputProgram<'_> for ThinRestore {}
impl<'a> MetadataWriter<'a> for ThinRestore {
fn file_not_found() -> &'a str {
msg::FILE_NOT_FOUND
}
}
//-----------------------------------------
@@ -93,6 +93,8 @@ test_corrupted_input_data!(ThinRestore);
test_missing_output_option!(ThinRestore);
test_tiny_output_file!(ThinRestore);
test_unwritable_output_file!(ThinRestore);
//-----------------------------------------
// TODO: share with cache_restore, era_restore