mirror of
https://github.com/actix/actix-extras.git
synced 2025-01-22 23:05:56 +01:00
commit
4be50ff7dd
@ -623,8 +623,8 @@ mod tests {
|
||||
use actix_web::{error, web, App, Error, HttpResponse};
|
||||
|
||||
const COOKIE_KEY_MASTER: [u8; 32] = [0; 32];
|
||||
const COOKIE_NAME: &'static str = "actix_auth";
|
||||
const COOKIE_LOGIN: &'static str = "test";
|
||||
const COOKIE_NAME: &str = "actix_auth";
|
||||
const COOKIE_LOGIN: &str = "test";
|
||||
|
||||
#[actix_rt::test]
|
||||
async fn test_identity() {
|
||||
@ -790,7 +790,7 @@ mod tests {
|
||||
let key: Vec<u8> = COOKIE_KEY_MASTER
|
||||
.iter()
|
||||
.chain([1, 0, 0, 0].iter())
|
||||
.map(|e| *e)
|
||||
.copied()
|
||||
.collect();
|
||||
jar.private(&Key::from_master(&key)).add(Cookie::new(
|
||||
COOKIE_NAME,
|
||||
@ -846,7 +846,7 @@ mod tests {
|
||||
let key: Vec<u8> = COOKIE_KEY_MASTER
|
||||
.iter()
|
||||
.chain([1, 0, 0, 0].iter())
|
||||
.map(|e| *e)
|
||||
.copied()
|
||||
.collect();
|
||||
let cookie = cookies
|
||||
.private(&Key::from_master(&key))
|
||||
|
@ -403,8 +403,7 @@ mod tests {
|
||||
assert!(response
|
||||
.response()
|
||||
.cookies()
|
||||
.find(|c| c.name() == "actix-session")
|
||||
.is_some());
|
||||
.any(|c| c.name() == "actix-session"));
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
@ -424,8 +423,7 @@ mod tests {
|
||||
assert!(response
|
||||
.response()
|
||||
.cookies()
|
||||
.find(|c| c.name() == "actix-session")
|
||||
.is_some());
|
||||
.any(|c| c.name() == "actix-session"));
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
@ -445,8 +443,7 @@ mod tests {
|
||||
assert!(response
|
||||
.response()
|
||||
.cookies()
|
||||
.find(|c| c.name() == "actix-session")
|
||||
.is_some());
|
||||
.any(|c| c.name() == "actix-session"));
|
||||
}
|
||||
|
||||
#[actix_rt::test]
|
||||
|
5
codecov.yml
Normal file
5
codecov.yml
Normal file
@ -0,0 +1,5 @@
|
||||
ignore: # ignore codecoverage on following paths
|
||||
- "**/examples"
|
||||
- ".github"
|
||||
- "**/*.md"
|
||||
- "**/*.toml"
|
Loading…
x
Reference in New Issue
Block a user