()
| 2402 | #[mz_ore::test] |
| 2403 | #[cfg_attr(miri, ignore)] |
| 2404 | fn apply_demand() { |
| 2405 | let desc = RelationDesc::builder() |
| 2406 | .with_column("a", SqlScalarType::String.nullable(true)) |
| 2407 | .with_column("b", SqlScalarType::Int64.nullable(false)) |
| 2408 | .with_column("c", SqlScalarType::Time.nullable(false)) |
| 2409 | .finish(); |
| 2410 | let desc = desc.apply_demand(&BTreeSet::from([0, 2])); |
| 2411 | assert_eq!(desc.arity(), 2); |
| 2412 | // TODO(parkmycar): Move validate onto RelationDesc. |
| 2413 | VersionedRelationDesc::new(desc).validate(); |
| 2414 | } |
| 2415 | |
| 2416 | #[mz_ore::test] |
| 2417 | #[cfg_attr(miri, ignore)] |
nothing calls this directly
no test coverage detected