Lines
95.83 %
Functions
37.5 %
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)]