• 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/humidity_simulator.py
1
import random
1✔
2
from .simulator import simulator
1✔
3
from .sensor_types import sensor_types
1✔
4

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

8
    def __init__(self, latitude: float, longitude: float, cella: str = "Centro", initial_humidity=50):
1✔
UNCOV
9
        humidity_simulator.__count += 1
×
UNCOV
10
        super().__init__(
×
11
            latitude,
12
            longitude,
13
            cella,
14
            f"Umd{humidity_simulator.__count}",
15
            initial_humidity,
16
            sensor_types.HUMIDITY.value
17
        )
18

19
    def _generate_measure(self):
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