()
| 813 | |
| 814 | #[test] |
| 815 | fn test_partial_ord() { |
| 816 | let catalog = DdlStatement::CreateCatalog(CreateCatalog { |
| 817 | catalog_name: "name".to_string(), |
| 818 | if_not_exists: false, |
| 819 | schema: DFSchemaRef::new(DFSchema::empty()), |
| 820 | }); |
| 821 | let catalog_2 = DdlStatement::CreateCatalog(CreateCatalog { |
| 822 | catalog_name: "name".to_string(), |
| 823 | if_not_exists: true, |
| 824 | schema: DFSchemaRef::new(DFSchema::empty()), |
| 825 | }); |
| 826 | |
| 827 | assert_eq!(catalog.partial_cmp(&catalog_2), Some(Ordering::Less)); |
| 828 | |
| 829 | let drop_view = DdlStatement::DropView(DropView { |
| 830 | name: TableReference::from("table"), |
| 831 | if_exists: false, |
| 832 | schema: DFSchemaRef::new(DFSchema::empty()), |
| 833 | }); |
| 834 | |
| 835 | assert_eq!(drop_view.partial_cmp(&catalog), Some(Ordering::Greater)); |
| 836 | } |
| 837 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…