|
@@ -20,7 +20,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// No data today
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -43,7 +43,7 @@ async fn test_stage_3_analysis() {
|
|
|
13,
|
|
|
);
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
}
|
|
@@ -69,7 +69,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// Should not be blocked because we have similar data.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -95,7 +95,7 @@ async fn test_stage_3_analysis() {
|
|
|
// This should not be blocked even though it's very different because
|
|
|
// it's different in the good direction.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -121,7 +121,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// This should be blocked because it's different in the bad direction.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
}
|
|
@@ -142,7 +142,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// No data today
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -165,7 +165,7 @@ async fn test_stage_3_analysis() {
|
|
|
16 + i % 5,
|
|
|
);
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
}
|
|
@@ -191,7 +191,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// Should not be blocked because we have similar data.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -217,7 +217,7 @@ async fn test_stage_3_analysis() {
|
|
|
// This should not be blocked even though it's very different because
|
|
|
// it's different in the good direction.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -243,7 +243,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// This should be blocked because it's different in the bad direction.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
}
|
|
@@ -264,7 +264,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// No data today
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -287,7 +287,7 @@ async fn test_stage_3_analysis() {
|
|
|
16 + i % 5,
|
|
|
);
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
}
|
|
@@ -313,7 +313,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// Should not be blocked because we have similar data.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -339,7 +339,7 @@ async fn test_stage_3_analysis() {
|
|
|
// This should not be blocked even though it's very different because
|
|
|
// it's different in the good direction.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -367,7 +367,7 @@ async fn test_stage_3_analysis() {
|
|
|
// The censor artificially inflated bridge stats to prevent detection.
|
|
|
// Ensure we still detect the censorship from negative reports.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
}
|
|
@@ -388,7 +388,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// No data today
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -411,7 +411,7 @@ async fn test_stage_3_analysis() {
|
|
|
16 + i % 5,
|
|
|
);
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
}
|
|
@@ -437,7 +437,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// Should not be blocked because we have similar data.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -463,7 +463,7 @@ async fn test_stage_3_analysis() {
|
|
|
// This should not be blocked even though it's very different because
|
|
|
// it's different in the good direction.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
|
|
@@ -490,7 +490,7 @@ async fn test_stage_3_analysis() {
|
|
|
|
|
|
// This should be blocked because it's different in the bad direction.
|
|
|
assert_eq!(
|
|
|
- blocked_in(&analyzer, &bridge_info, confidence, date),
|
|
|
+ blocked_in(&analyzer, &bridge_info, confidence, date, 30, 30),
|
|
|
blocking_countries
|
|
|
);
|
|
|
}
|