Lines
96 %
Functions
41.18 %
Branches
100 %
use core::fmt::Debug;
use bonsaidb::core::schema::{Collection, View};
#[derive(Collection, Debug)]
#[collection(name = "name", authority = "authority")]
struct TestCollection;
#[test]
fn name_only() {
#[derive(View, Debug)]
#[view(collection = TestCollection, name = "some strange name äöü")]
#[view(key = ())]
struct TestView;
}
fn serialization() {
#[view(collection = TestCollection)]
#[view(serialization = transmog_bincode::Bincode)]
fn serialization_none() {
#[view(serialization = None)]