@@ -361,8 +361,9 @@ impl<S: ScalarValue> GraphQLBatchResponse<S> {
361361}
362362
363363#[ cfg( feature = "expose-test-schema" ) ]
364- #[ allow( missing_docs) ]
365364pub mod tests {
365+ //! HTTP integration tests.
366+
366367 use std:: time:: Duration ;
367368
368369 use serde_json:: Value as Json ;
@@ -373,8 +374,13 @@ pub mod tests {
373374 /// the http framework integration we are testing.
374375 #[ derive( Debug ) ]
375376 pub struct TestResponse {
377+ /// Status code of the HTTP response.
376378 pub status_code : i32 ,
379+
380+ /// Body of the HTTP response, if any.
377381 pub body : Option < String > ,
382+
383+ /// `Content-Type` header value of the HTTP response.
378384 pub content_type : String ,
379385 }
380386
@@ -393,7 +399,7 @@ pub mod tests {
393399 fn post_graphql ( & self , url : & str , body : & str ) -> TestResponse ;
394400 }
395401
396- # [ allow ( missing_docs ) ]
402+ /// Runs integration tests suite for the provided [`HttpIntegration`].
397403 pub fn run_http_test_suite < T : HttpIntegration > ( integration : & T ) {
398404 println ! ( "Running HTTP Test suite for integration" ) ;
399405
@@ -662,7 +668,10 @@ pub mod tests {
662668
663669 use super :: { WS_INTEGRATION_EXPECT_DEFAULT_TIMEOUT , WsIntegration , WsIntegrationMessage } ;
664670
665- #[ allow( missing_docs) ]
671+ /// Runs integration tests suite for the [legacy `graphql-ws` GraphQL over WebSocket
672+ /// Protocol][0].
673+ ///
674+ /// [0]:https://github.com/apollographql/subscriptions-transport-ws/blob/v0.11.0/PROTOCOL.md
666675 pub async fn run_test_suite < T : WsIntegration > ( integration : & T ) {
667676 println ! ( "Running `graphql-ws` test suite for integration" ) ;
668677
@@ -791,7 +800,10 @@ pub mod tests {
791800
792801 use super :: { WS_INTEGRATION_EXPECT_DEFAULT_TIMEOUT , WsIntegration , WsIntegrationMessage } ;
793802
794- #[ allow( missing_docs) ]
803+ /// Runs integration tests suite the [new `graphql-transport-ws` GraphQL over WebSocket
804+ /// Protocol][new].
805+ ///
806+ /// [new]: https://github.com/enisdenjo/graphql-ws/blob/v5.14.0/PROTOCOL.md
795807 pub async fn run_test_suite < T : WsIntegration > ( integration : & T ) {
796808 println ! ( "Running `graphql-transport-ws` test suite for integration" ) ;
797809
0 commit comments