add test cfg attribute (#24154)

This commit is contained in:
HaoranYi 2022-04-07 09:05:20 -05:00 committed by GitHub
parent 206c3dd402
commit 42c094739d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -455,6 +455,8 @@ impl AppendVec {
next,
))
}
#[cfg(test)]
pub fn get_account_test(&self, offset: usize) -> Option<(StoredMeta, AccountSharedData)> {
let (stored_account, _) = self.get_account(offset)?;
let meta = stored_account.meta.clone();