unit tests
This commit is contained in:
parent
072903882d
commit
8b4c21ba58
2 changed files with 886 additions and 24 deletions
File diff suppressed because it is too large
Load diff
|
@ -630,7 +630,8 @@ impl IdentityManager {
|
|||
}
|
||||
}
|
||||
|
||||
async fn add_role(&self, trgchatter: String, trg_role: UserRole) {
|
||||
// => 03.22 - Force - Made public because botmodules unit tests
|
||||
pub async fn add_role(&self, trgchatter: String, trg_role: UserRole) {
|
||||
let mut srulock = self.special_roles_users.write().await;
|
||||
let mut usrrolelock = srulock
|
||||
.get_mut(&trgchatter)
|
||||
|
@ -652,7 +653,8 @@ impl IdentityManager {
|
|||
}
|
||||
}
|
||||
|
||||
async fn affirm_chatter_in_db(&self, trgchatter: String) {
|
||||
// => 03.22 - Force - Made public because botmodules unit tests
|
||||
pub async fn affirm_chatter_in_db(&self, trgchatter: String) {
|
||||
let mut srulock = self.special_roles_users.write().await;
|
||||
srulock
|
||||
.entry(trgchatter.clone())
|
||||
|
|
Loading…
Reference in a new issue