mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-30 18:44:35 +01:00
update tests
This commit is contained in:
parent
e9121025b7
commit
9f4d48f7a1
@ -197,10 +197,10 @@ mod tests {
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
|
||||
use super::*;
|
||||
use error::ParseError;
|
||||
use h1::Message;
|
||||
use httpmessage::HttpMessage;
|
||||
use request::Request;
|
||||
use crate::error::ParseError;
|
||||
use crate::h1::Message;
|
||||
use crate::httpmessage::HttpMessage;
|
||||
use crate::request::Request;
|
||||
|
||||
#[test]
|
||||
fn test_http_request_chunked_payload_and_next_message() {
|
||||
|
@ -612,9 +612,9 @@ mod tests {
|
||||
use tokio_io::{AsyncRead, AsyncWrite};
|
||||
|
||||
use super::*;
|
||||
use error::ParseError;
|
||||
use httpmessage::HttpMessage;
|
||||
use message::Head;
|
||||
use crate::error::ParseError;
|
||||
use crate::httpmessage::HttpMessage;
|
||||
use crate::message::Head;
|
||||
|
||||
impl PayloadType {
|
||||
fn unwrap(self) -> PayloadDecoder {
|
||||
|
@ -73,9 +73,9 @@ impl Response {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use body::Body;
|
||||
use crate::body::Body;
|
||||
use crate::response::Response;
|
||||
use http::StatusCode;
|
||||
use response::Response;
|
||||
|
||||
#[test]
|
||||
fn test_build() {
|
||||
|
@ -568,11 +568,12 @@ where
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::test::TestRequest;
|
||||
use encoding::all::ISO_8859_2;
|
||||
use encoding::Encoding;
|
||||
use futures::Async;
|
||||
use mime;
|
||||
use test::TestRequest;
|
||||
use serde_derive::Deserialize;
|
||||
|
||||
#[test]
|
||||
fn test_content_type() {
|
||||
|
@ -137,8 +137,9 @@ mod tests {
|
||||
use bytes::Bytes;
|
||||
use futures::Async;
|
||||
use http::header;
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
|
||||
use test::TestRequest;
|
||||
use crate::test::TestRequest;
|
||||
|
||||
impl PartialEq for JsonPayloadError {
|
||||
fn eq(&self, other: &JsonPayloadError) -> bool {
|
||||
|
@ -855,9 +855,9 @@ impl ResponsePool {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use body::Body;
|
||||
use http;
|
||||
use http::header::{HeaderValue, CONTENT_TYPE, COOKIE};
|
||||
use crate::body::Body;
|
||||
use crate::http;
|
||||
use crate::http::header::{HeaderValue, CONTENT_TYPE, COOKIE};
|
||||
|
||||
// use test::TestRequest;
|
||||
|
||||
|
@ -194,8 +194,8 @@ pub fn handshake_response(req: &Request) -> ResponseBuilder {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::test::TestRequest;
|
||||
use http::{header, Method};
|
||||
use test::TestRequest;
|
||||
|
||||
#[test]
|
||||
fn test_handshake() {
|
||||
|
Loading…
Reference in New Issue
Block a user