Lines Matching refs:fetch
215 fn fetch( in fetch() method
359 fn fetch( in fetch() function
373 res = fb.fetch(part.as_str(), off, size, upload_builder, &mut utils) in fetch()
390 assert!(fetch(&mut fb, "::0:0".into(), 0, 0).is_err()); in test_fetch_invalid_partition_arg()
393 assert!(fetch(&mut fb, "non:::".into(), 0, 0).is_err()); in test_fetch_invalid_partition_arg()
396 assert!(fetch(&mut fb, "vendor_boot_a:::".into(), 0, 0).is_err()); in test_fetch_invalid_partition_arg()
399 assert!(fetch(&mut fb, "boot_a::0x2001:".into(), 0, 1).is_err()); in test_fetch_invalid_partition_arg()
400 assert!(fetch(&mut fb, "boot_a".into(), 0x2000, 1).is_err()); in test_fetch_invalid_partition_arg()
403 assert!(fetch(&mut fb, "boot_a:::0x2001".into(), 0, 0).is_err()); in test_fetch_invalid_partition_arg()
404 assert!(fetch(&mut fb, "boot_a".into(), 0, 0x2001).is_err()); in test_fetch_invalid_partition_arg()
413 assert_eq!(fetch(fb, part, 0, size).unwrap(), expected); in check_blk_upload()
416 assert_eq!(fetch(fb, part, off, size).unwrap(), expected); in check_blk_upload()
450 assert_eq!(fetch(fb, gpt_part, 0, size).unwrap(), expected); in check_gpt_upload()
453 assert_eq!(fetch(fb, gpt_part, off, size).unwrap(), expected); in check_gpt_upload()
492 assert_eq!(fetch(fb, part.into(), 0, dl_size.try_into().unwrap()).unwrap(), download); in check_flash_part()
498 assert_eq!(fetch(fb, part.into(), 0, dl_size.try_into().unwrap()).unwrap(), download); in check_flash_part()
539 assert_eq!(fetch(&mut fb, ":0".into(), 0, raw.len().try_into().unwrap()).unwrap(), raw); in test_flash_partition_sparse()