()
| 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 |
nothing calls this directly
no test coverage detected