()
| 95 | |
| 96 | #[tokio::test(flavor = "multi_thread")] |
| 97 | async fn test_first_val() { |
| 98 | let mut data_gen_config: DatasetGeneratorConfig = baseline_config(); |
| 99 | |
| 100 | for i in 0..data_gen_config.columns.len() { |
| 101 | if data_gen_config.columns[i].get_max_num_distinct().is_none() { |
| 102 | data_gen_config.columns[i] = data_gen_config.columns[i] |
| 103 | .clone() |
| 104 | // Minimize the chance of identical values in the order by columns to make the test more stable |
| 105 | .with_max_num_distinct(usize::MAX); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | let query_builder = QueryBuilder::new() |
| 110 | .with_table_name("fuzz_table") |
| 111 | .with_aggregate_function("first_value") |
| 112 | .with_aggregate_arguments(data_gen_config.all_columns()) |
| 113 | .with_dataset_sort_keys(data_gen_config.sort_keys_set.clone()) |
| 114 | .set_group_by_columns(data_gen_config.all_columns()); |
| 115 | |
| 116 | AggregationFuzzerBuilder::from(data_gen_config) |
| 117 | .add_query_builder(query_builder) |
| 118 | .build() |
| 119 | .run() |
| 120 | .await; |
| 121 | } |
| 122 | |
| 123 | #[tokio::test(flavor = "multi_thread")] |
| 124 | async fn test_last_val() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…