Skip to content

Commit

Permalink
Add coverage-map and coverage-point-calculator to CI (#829)
Browse files Browse the repository at this point in the history
* Include coverage-map and coverage-point-calculator in CI

* Speedtests effect reward_shares

Speedtests are not part of "coverage", so the field `total_coverage_points` was renamed, and coverage points was repurposed to mean coverage related points, not backhaul related points.
  • Loading branch information
michaeldjeffrey authored Jun 17, 2024
1 parent 365655f commit 7de3c64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
strategy:
fail-fast: false
matrix:
package: [file-store,ingest,mobile-packet-verifier,reward-scheduler,task-manager]
package: [coverage-map,coverage-point-calculator,file-store,ingest,mobile-packet-verifier,reward-scheduler,task-manager]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-tests-${{ matrix.package }}
cancel-in-progress: true
Expand Down
12 changes: 6 additions & 6 deletions coverage_point_calculator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ mod tests {
}

#[test]
fn speedtests_effect_coverage_points() {
fn speedtests_effect_reward_shares() {
let calculate_indoor_cbrs = |speedtests: Vec<Speedtest>| {
CoveragePoints::new(
RadioType::IndoorCbrs,
Expand All @@ -419,7 +419,7 @@ mod tests {
let indoor_cbrs = calculate_indoor_cbrs(speedtest_maximum());
assert_eq!(
base_coverage_points * SpeedtestTier::Good.multiplier(),
indoor_cbrs.total_coverage_points
indoor_cbrs.reward_shares
);

let indoor_cbrs = calculate_indoor_cbrs(vec![
Expand All @@ -428,7 +428,7 @@ mod tests {
]);
assert_eq!(
base_coverage_points * SpeedtestTier::Acceptable.multiplier(),
indoor_cbrs.total_coverage_points
indoor_cbrs.reward_shares
);

let indoor_cbrs = calculate_indoor_cbrs(vec![
Expand All @@ -437,7 +437,7 @@ mod tests {
]);
assert_eq!(
base_coverage_points * SpeedtestTier::Degraded.multiplier(),
indoor_cbrs.total_coverage_points
indoor_cbrs.reward_shares
);

let indoor_cbrs = calculate_indoor_cbrs(vec![
Expand All @@ -446,7 +446,7 @@ mod tests {
]);
assert_eq!(
base_coverage_points * SpeedtestTier::Poor.multiplier(),
indoor_cbrs.total_coverage_points
indoor_cbrs.reward_shares
);

let indoor_cbrs = calculate_indoor_cbrs(vec![
Expand All @@ -455,7 +455,7 @@ mod tests {
]);
assert_eq!(
base_coverage_points * SpeedtestTier::Fail.multiplier(),
indoor_cbrs.total_coverage_points
indoor_cbrs.reward_shares
);
}

Expand Down

0 comments on commit 7de3c64

Please sign in to comment.