use std::collections::HashMap;
use facet_reflect::Partial;
use facet_testhelpers::test;
#[test]
fn wip_map_leaktest1() {
let wip = Partial::alloc::<HashMap<String, String>>()
.unwrap()
.init_map()
.unwrap()
.begin_key()
.unwrap()
.set("key".to_string())
.unwrap()
.end()
.unwrap()
.begin_value()
.unwrap()
.set("value".to_string())
.unwrap()
.end()
.unwrap()
.build()
.unwrap();
drop(wip);
}
#[test]
fn wip_map_leaktest2() {
let wip = Partial::alloc::<HashMap<String, String>>()
.unwrap()
.init_map()
.unwrap()
.begin_key()
.unwrap()
.set("key".to_string())
.unwrap()
.end()
.unwrap()
.begin_value()
.unwrap()
.set("value".to_string())
.unwrap()
.end()
.unwrap();
drop(wip);
}
#[test]
fn wip_map_leaktest3() {
let wip = Partial::alloc::<HashMap<String, String>>()
.unwrap()
.init_map()
.unwrap()
.begin_key()
.unwrap()
.set("key".to_string())
.unwrap()
.end()
.unwrap()
.begin_value()
.unwrap()
.set("value".to_string())
.unwrap();
drop(wip);
}
#[test]
fn wip_map_leaktest4() {
let wip = Partial::alloc::<HashMap<String, String>>()
.unwrap()
.init_map()
.unwrap()
.begin_key()
.unwrap()
.set("key".to_string())
.unwrap()
.end()
.unwrap()
.begin_value()
.unwrap();
drop(wip);
}
#[test]
fn wip_map_leaktest5() {
let wip = Partial::alloc::<HashMap<String, String>>()
.unwrap()
.init_map()
.unwrap()
.begin_key()
.unwrap()
.set("key".to_string())
.unwrap();
drop(wip);
}
#[test]
fn wip_map_leaktest6() {
let wip = Partial::alloc::<HashMap<String, String>>()
.unwrap()
.init_map()
.unwrap()
.begin_key()
.unwrap();
drop(wip);
}
#[test]
fn wip_map_leaktest7() {
let wip = Partial::alloc::<HashMap<String, String>>()
.unwrap()
.init_map()
.unwrap();
drop(wip);
}
#[test]
fn wip_map_leaktest8() {
let wip = Partial::alloc::<HashMap<String, String>>().unwrap();
drop(wip);
}