Add cli deploy tests (#15116)

This commit is contained in:
Jack May
2021-02-05 09:57:44 -08:00
committed by GitHub
parent f85be6259b
commit 210514b136
3 changed files with 328 additions and 5 deletions

View File

@ -1554,7 +1554,7 @@ impl fmt::Display for CliUpgradeableProgram {
pub struct CliUpgradeableBuffer {
pub address: String,
pub authority: String,
pub program_len: usize,
pub data_len: usize,
}
impl QuietDisplay for CliUpgradeableBuffer {}
impl VerboseDisplay for CliUpgradeableBuffer {}
@ -1565,8 +1565,8 @@ impl fmt::Display for CliUpgradeableBuffer {
writeln_name_value(f, "Authority:", &self.authority)?;
writeln_name_value(
f,
"Program Length:",
&format!("{:?} ({:#x?}) bytes", self.program_len, self.program_len),
"Data Length:",
&format!("{:?} ({:#x?}) bytes", self.data_len, self.data_len),
)?;
Ok(())
}