()
| 272 | |
| 273 | #[test] |
| 274 | fn test_insert_all_owned() { |
| 275 | let mut set = JoinKeySet::new(); |
| 276 | |
| 277 | // insert (a=b), (b=c), (b=a) |
| 278 | set.insert_all_owned(vec![ |
| 279 | (col("a"), col("b")), |
| 280 | (col("b"), col("c")), |
| 281 | (col("b"), col("a")), |
| 282 | ]); |
| 283 | assert_eq!(set.len(), 2); |
| 284 | assert!(set.contains(&col("a"), &col("b"))); |
| 285 | assert!(set.contains(&col("b"), &col("c"))); |
| 286 | assert!(set.contains(&col("b"), &col("a"))); |
| 287 | |
| 288 | // should not contain (a=c) |
| 289 | assert!(!set.contains(&col("a"), &col("c"))); |
| 290 | } |
| 291 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…