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

Function test_delete_file_not_found

client/src/cloud.rs:862–873  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

860 #[test]
861 #[ignore = "Requires environment configuration and is expensive"]
862 fn test_delete_file_not_found() {
863 #[tokio::main]
864 async fn run(context: &mut TestContext) {
865 let username = context.do_login(1).await;
866 let (filename, _content) = context.random_file();
867
868 let err = context.service.delete_file(&username, &filename).await.unwrap_err();
869 assert_eq!(io::ErrorKind::NotFound, err.kind(), "{}", err);
870 assert!(format!("{}", err).contains("(server code: 404"));
871 }
872 run(&mut TestContext::new_from_env());
873 }
874
875 #[test]
876 #[ignore = "Requires environment configuration and is expensive"]

Callers

nothing calls this directly

Calls 1

runFunction · 0.70

Tested by

no test coverage detected