MCPcopy Create free account
hub / github.com/hashintel/hash / test_root_sorting_chunked

Function test_root_sorting_chunked

tests/graph/integration/postgres/sorting.rs:32–40  ·  view source on GitHub ↗
(
    api: &DatabaseApi<'_>,
    sort: [(EntityQueryPath<'static>, Ordering, NullOrdering); N],
    expected_order: [PropertyObject; M],
)

Source from the content-addressed store, hash-verified

30use crate::{DatabaseApi, DatabaseTestWrapper};
31
32async fn test_root_sorting_chunked<const N: usize, const M: usize>(
33 api: &DatabaseApi<'_>,
34 sort: [(EntityQueryPath<'static>, Ordering, NullOrdering); N],
35 expected_order: [PropertyObject; M],
36) {
37 for chunk_size in 0..expected_order.len() {
38 test_root_sorting(api, chunk_size + 1, sort.clone(), &expected_order).await;
39 }
40}
41
42async fn test_root_sorting(
43 api: &DatabaseApi<'_>,

Calls 3

test_root_sortingFunction · 0.85
lenMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected