MCPcopy Create free account
hub / github.com/dfinity/orbit / test_user_groups_validation

Function test_user_groups_validation

core/station/impl/src/models/user.rs:204–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202
203 #[test]
204 fn test_user_groups_validation() {
205 let mut user = mock_user();
206 user.groups = vec![];
207
208 let result = validate_groups(&user.groups);
209
210 assert!(result.is_ok());
211 }
212
213 #[test]
214 fn fail_user_groups_too_many() {

Callers

nothing calls this directly

Calls 2

validate_groupsFunction · 0.85
mock_userFunction · 0.70

Tested by

no test coverage detected