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

Function create_user

chirpstack/src/storage/user.rs:254–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

252 use crate::test;
253
254 pub async fn create_user() -> User {
255 let mut user = User {
256 is_admin: true,
257 is_active: true,
258 email: "test@example.com".into(),
259 email_verified: true,
260 ..Default::default()
261 };
262 user.set_password_hash("password!").unwrap();
263 create(user).await.unwrap()
264 }
265
266 #[test]
267 fn test_hash_password() {

Callers 3

test_tenantFunction · 0.85
test_tenant_userFunction · 0.85
test_userFunction · 0.85

Calls 4

unwrapMethod · 0.80
set_password_hashMethod · 0.80
createFunction · 0.70
intoMethod · 0.45

Tested by 3

test_tenantFunction · 0.68
test_tenant_userFunction · 0.68
test_userFunction · 0.68