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

Function test_share_print_some_acls

client/src/cmds.rs:902–921  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

900
901 #[tokio::test]
902 async fn test_share_print_some_acls() {
903 let mut t = ClientTester::default();
904 {
905 let storage = t.get_storage();
906 let mut storage = storage.borrow_mut();
907 storage.put("MEMORY:/FOO", b"").await.unwrap();
908 storage
909 .update_acls(
910 "MEMORY:/FOO",
911 &FileAcls::default().with_readers(["some".to_owned(), "person".to_owned()]),
912 &FileAcls::default(),
913 )
914 .await
915 .unwrap();
916 }
917 t.run(r#"SHARE "MEMORY:/FOO""#)
918 .expect_prints(["", " Reader ACLs on MEMORY:/FOO:", " person", " some", ""])
919 .expect_file("MEMORY:/FOO", "")
920 .check();
921 }
922
923 #[tokio::test]
924 async fn test_share_make_public() {

Callers

nothing calls this directly

Calls 8

with_readersMethod · 0.80
get_storageMethod · 0.45
putMethod · 0.45
update_aclsMethod · 0.45
checkMethod · 0.45
expect_fileMethod · 0.45
expect_printsMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected