feat: add starpage continuation

This commit is contained in:
ThetaDev 2022-10-15 12:02:53 +02:00
parent 0bc9496865
commit 9ced819abe
9 changed files with 27705 additions and 13728 deletions

View file

@ -1220,6 +1220,21 @@ async fn startpage() {
assert!(!result.is_exhausted());
}
#[tokio::test]
async fn startpage_cont() {
let rp = RustyPipe::builder().strict().build();
let startpage = rp.query().startpage().await.unwrap();
let next = startpage.next(rp.query()).await.unwrap().unwrap();
assert!(
next.items.len() > 20,
"expected > 20 items, got {}",
next.items.len()
);
assert!(!next.is_exhausted());
}
#[tokio::test]
async fn trending() {
let rp = RustyPipe::builder().strict().build();