ctoolbox/
renderer.rs

1struct Document {
2    data: Vec<u8>,
3}
4
5pub fn start(document: Vec<u8>) {
6    Document { data: document };
7}
8
9pub fn test_echo(document: &str) -> String {
10    document.to_string().repeat(3)
11}
12
13#[cfg(test)]
14mod tests {
15
16    #[crate::ctb_test]
17    fn can_start() {
18        // put("key".to_string(), "value".to_string());
19        // assert_eq!("key", String::from_utf8_lossy(&get("key").unwrap()));
20    }
21}