diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-08-21 08:47:32 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-08-21 17:53:20 +0200 |
| commit | e2c7d16be4a1ac5a65b4fdf80abf600a822a66ca (patch) | |
| tree | 7d6c9b3f6d98bab3f6b9933d57e81f6a84b9e1fb | |
| parent | 5ff930f884c68f2b16d18fb6da1487123979b0b8 (diff) | |
| download | mullvadvpn-e2c7d16be4a1ac5a65b4fdf80abf600a822a66ca.tar.xz mullvadvpn-e2c7d16be4a1ac5a65b4fdf80abf600a822a66ca.zip | |
Add reminder to update test on new indicators
| -rw-r--r-- | mullvad-types/src/features.rs | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/mullvad-types/src/features.rs b/mullvad-types/src/features.rs index e7317ec6a7..95caade0f8 100644 --- a/mullvad-types/src/features.rs +++ b/mullvad-types/src/features.rs @@ -225,11 +225,11 @@ mod tests { expected_indicators ); - // Setting mssfix without having an openVPN endpoint should not result in an indicator settings.tunnel_options.openvpn.mssfix = Some(1300); assert_eq!( compute_feature_indicators(&settings, &endpoint), - expected_indicators + expected_indicators, + "Setting mssfix without having an openVPN endpoint should not result in an indicator" ); endpoint.tunnel_type = TunnelType::OpenVpn; @@ -319,5 +319,24 @@ mod tests { expected_indicators ); } + + // NOTE: If this match statement fails to compile, it means that a new feature indicator has + // been added. Please update this test to include the new feature indicator. + match FeatureIndicator::QuantumResistance { + FeatureIndicator::QuantumResistance => {} + FeatureIndicator::Multihop => {} + FeatureIndicator::BridgeMode => {} + FeatureIndicator::SplitTunneling => {} + FeatureIndicator::LockdownMode => {} + FeatureIndicator::Udp2Tcp => {} + FeatureIndicator::Shadowsocks => {} + FeatureIndicator::LanSharing => {} + FeatureIndicator::DnsContentBlockers => {} + FeatureIndicator::CustomDns => {} + FeatureIndicator::ServerIpOverride => {} + FeatureIndicator::CustomMtu => {} + FeatureIndicator::CustomMssFix => {} + FeatureIndicator::Daita => {} + } } } |
