• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Blightmud / Blightmud / 14316676040

07 Apr 2025 06:27PM UTC coverage: 74.417% (-0.9%) from 75.283%
14316676040

push

github

web-flow
Merge pull request #1202 from Blightmud/dependabot/cargo/rustls-0.23.25

build(deps): bump rustls from 0.23.23 to 0.23.25

7089 of 9526 relevant lines covered (74.42%)

431.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/lua/fs.rs
1
use mlua::{Function, Table, UserData};
2

3
use crate::event::Event;
4

5
use super::{
6
    backend::Backend,
7
    constants::{BACKEND, FS_LISTENERS},
8
};
9

10
pub struct Fs {}
11

12
impl UserData for Fs {
13
    fn add_methods<'lua, M: mlua::UserDataMethods<'lua, Self>>(methods: &mut M) {
165✔
14
        methods.add_function("monitor", |ctx, (path, cb): (String, Function)| {
165✔
15
            let table: Table = ctx.named_registry_value(FS_LISTENERS)?;
×
16
            table.set(table.raw_len() + 1, cb)?;
×
17

18
            let backend: Backend = ctx.named_registry_value(BACKEND)?;
×
19
            backend.writer.send(Event::FSMonitor(path)).unwrap();
×
20
            Ok(())
×
21
        })
×
22
    }
165✔
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc