atomic_lib 0.40.0

Library for creating, storing, querying, validating and converting Atomic Data.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Creates a populated Store with an agent (testman) and one test resource (_:test)
#[cfg(test)]
pub fn init_store() -> crate::Store {
    use crate::Storelike;

    let store = crate::Store::init().unwrap();
    store.populate().unwrap();
    let agent = store.create_agent(None).unwrap();
    store.set_default_agent(agent);
    store
}