1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01:00

update tests

This commit is contained in:
Nikolay Kim 2018-12-06 15:03:01 -08:00
parent e9121025b7
commit 9f4d48f7a1
7 changed files with 17 additions and 15 deletions

View File

@ -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() {

View File

@ -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 {

View File

@ -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() {

View File

@ -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() {

View File

@ -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 {

View File

@ -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;

View File

@ -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() {