MB
Size: a a a
MB
IB
MK
CM
d
MK
R
#[cfg(not(test))]и тест на актиксе:
#[async_trait::async_trait]
impl Guard for RoleGuard {
#[cfg(test)]
#[async_trait::async_trait]
impl Guard for RoleGuard {
#[actix_rt::test]при запуске cargo test отрабатывает почему-то первый, кто растолкует?
async fn test_create() {
MB
R
WARNING: no such item: service::module
MB
JC
Е
R
struct RoleGuard {
role: Role,
}
#[cfg(test)]
impl Guard for RoleGuard {
R
#[cfg(not(test))]
RP
#[cfg(not(test))]и тест на актиксе:
#[async_trait::async_trait]
impl Guard for RoleGuard {
#[cfg(test)]
#[async_trait::async_trait]
impl Guard for RoleGuard {
#[actix_rt::test]при запуске cargo test отрабатывает почему-то первый, кто растолкует?
async fn test_create() {
R
k
Р
Р
(L