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

ByteOps-swe / MVP / 8490927449

30 Mar 2024 12:57PM UTC coverage: 42.353% (-51.8%) from 94.161%
8490927449

push

github

web-flow
Merge pull request #39 from ByteOps-swe/Barutta02-patch-2

Tolto test

27 of 126 branches covered (21.43%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

1143 existing lines in 77 files now uncovered.

981 of 2254 relevant lines covered (43.52%)

0.44 hits per line

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

58.33
/PythonSensorsSimulator/Model/Simulators/dust_PM10_simulator.py
1
import random
1✔
2
from .simulator import simulator
1✔
3
from .sensor_types import sensor_types
1✔
4

5
class dust_PM10_simulator(simulator):
1✔
6
    __count = 0
1✔
7

8
    def __init__(self, latitude: float, longitude: float, cella: str = "Centro", initial_dust_level=30):
1✔
UNCOV
9
        dust_PM10_simulator.__count += 1
×
UNCOV
10
        super().__init__(
×
11
            latitude,
12
            longitude,
13
            cella,
14
            f"DstPM10{dust_PM10_simulator.__count}",
15
            initial_dust_level,
16
            sensor_types.DUST_PM10.value
17
        )
18

19
    def _generate_measure(self) -> None:
1✔
UNCOV
20
        variation = random.uniform(-5, 5)
×
UNCOV
21
        self._misurazione += variation
×
UNCOV
22
        self._misurazione = max(0, min(100, self._misurazione))
×
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