MCPcopy Index your code
hub / github.com/endbasic/endbasic / do_get_and_patch_file_test

Function do_get_and_patch_file_test

client/src/cloud.rs:672–682  ·  view source on GitHub ↗
(
        context: &mut TestContext,
        filename: &str,
        content: B,
    )

Source from the content-addressed store, hash-verified

670 }
671
672 async fn do_get_and_patch_file_test<B: Into<Vec<u8>>>(
673 context: &mut TestContext,
674 filename: &str,
675 content: B,
676 ) {
677 let username = context.do_login(1).await;
678
679 let content = content.into();
680 context.service.patch_file_content(&username, filename, content.clone()).await.unwrap();
681 assert_eq!(content, context.service.get_file(&username, filename).await.unwrap());
682 }
683
684 #[test]
685 #[ignore = "Requires environment configuration and is expensive"]

Callers 1

runFunction · 0.85

Calls 2

do_loginMethod · 0.45
patch_file_contentMethod · 0.45

Tested by

no test coverage detected