1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 15:07:42 +02:00

add json extractor tests

This commit is contained in:
Nikolay Kim
2019-03-17 09:52:41 -07:00
parent 7435c5e9bf
commit c14c66d2b0
5 changed files with 105 additions and 12 deletions

View File

@ -288,7 +288,7 @@ where
}
#[cfg(test)]
mod tests {
pub(crate) mod tests {
use actix_service::Service;
use bytes::{Bytes, BytesMut};
@ -322,7 +322,7 @@ mod tests {
}
}
trait BodyTest {
pub(crate) trait BodyTest {
fn bin_ref(&self) -> &[u8];
fn body(&self) -> &Body;
}