MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / run_tests

Function run_tests

chirpstack/src/api/auth/validator.rs:2903–2919  ·  view source on GitHub ↗
(tests: Vec<ValidatorTest<V>>)

Source from the content-addressed store, hash-verified

2901 }
2902
2903 async fn run_tests<V>(tests: Vec<ValidatorTest<V>>)
2904 where
2905 V: Validator + Sync,
2906 {
2907 println!("Running tests");
2908 for (i, tst) in tests.iter().enumerate() {
2909 for (j, v) in tst.validators.iter().enumerate() {
2910 assert_eq!(
2911 tst.ok,
2912 v.validate(&tst.id).await.is_ok(),
2913 "Test {}, assertion {}",
2914 i,
2915 j
2916 );
2917 }
2918 }
2919 }
2920
2921 #[tokio::test]
2922 async fn validate_is_admin() {

Callers 12

validate_is_adminFunction · 0.85
validate_active_userFunction · 0.85
validate_tenantFunction · 0.85
tenant_userFunction · 0.85
applicationFunction · 0.85
device_profileFunction · 0.85
deviceFunction · 0.85
device_queueFunction · 0.85
gatewayFunction · 0.85
multicast_groupFunction · 0.85
fuota_deploymentFunction · 0.85

Calls 1

iterMethod · 0.80

Tested by

no test coverage detected