2021-10-12から1日間の記事一覧
やりたいこと Diesel使ってDBに繋いでいるActix Webアプリのテストをするときに、ドキュメントのIntegration testsにはこんな例が書いてある。 #[actix_rt::test] async fn test_index_post() { let mut app = test::init_service(App::new().route("/", web…
やりたいこと Diesel使ってDBに繋いでいるActix Webアプリのテストをするときに、ドキュメントのIntegration testsにはこんな例が書いてある。 #[actix_rt::test] async fn test_index_post() { let mut app = test::init_service(App::new().route("/", web…