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

Function test_share_make_public

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

Source from the content-addressed store, hash-verified

922
923 #[tokio::test]
924 async fn test_share_make_public() {
925 let mut t = ClientTester::default();
926 t.get_storage().borrow_mut().put("MEMORY:/FOO.BAS", b"").await.unwrap();
927 t.get_service().borrow_mut().do_login().await;
928 let mut checker = t.run(r#"SHARE "MEMORY:/FOO.BAS", "Public+r""#);
929 let output = flatten_output(checker.take_captured_out());
930 checker.expect_file("MEMORY:/FOO.BAS", "").expect_access_token("$").check();
931 assert!(output.contains("https://repl.example.com/?run=logged-in-username/FOO.BAS"));
932 }
933
934 // TODO(jmmv): Add forgotten tests for SHARE modifying ACLs.
935

Callers

nothing calls this directly

Calls 10

flatten_outputFunction · 0.85
get_serviceMethod · 0.80
expect_access_tokenMethod · 0.80
putMethod · 0.45
get_storageMethod · 0.45
do_loginMethod · 0.45
runMethod · 0.45
take_captured_outMethod · 0.45
checkMethod · 0.45
expect_fileMethod · 0.45

Tested by

no test coverage detected