diff options
Diffstat (limited to 'database/src/test_shared.rs')
| -rw-r--r-- | database/src/test_shared.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/database/src/test_shared.rs b/database/src/test_shared.rs index fbd9501..82e9ba4 100644 --- a/database/src/test_shared.rs +++ b/database/src/test_shared.rs @@ -26,3 +26,9 @@ pub(crate) fn new_bob() -> ObjectBuffer { (FRIEND.0, &"Charlie"), ]) } +pub(crate) fn new_alice() -> ObjectBuffer { + ObjectBuffer::new(&mut [(NAME.0, &"Alice"), (AGE.0, &31_u32), (FRIEND.0, &"Bob")]) +} +pub(crate) fn new_charlie() -> ObjectBuffer { + ObjectBuffer::new(&mut [(NAME.0, &"Charlie"), (AGE.0, &31_u32), (FRIEND.0, &"Bob")]) +} |