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

ByteOps-swe / MVP / 8215196951

09 Mar 2024 02:27PM UTC coverage: 9.381% (-61.8%) from 71.198%
8215196951

push

github

Shinji76
Merge branch 'develop' into Action-test

47 of 59 new or added lines in 6 files covered. (79.66%)

956 existing lines in 41 files now uncovered.

144 of 1535 relevant lines covered (9.38%)

0.09 hits per line

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

0.0
/PythonSensorsSimulator/Model/Simulators/HumiditySimulator.py
UNCOV
1
import random
×
UNCOV
2
from .Simulator import Simulator
×
UNCOV
3
from .SensorTypes import SensorTypes
×
4

UNCOV
5
class HumiditySimulator(Simulator):
×
UNCOV
6
    __count = 0
×
7

UNCOV
8
    def __init__(self, latitude: float, longitude: float, cella: str = "Centro", initial_humidity=50):
×
UNCOV
9
        HumiditySimulator.__count += 1
×
UNCOV
10
        super().__init__(latitude, longitude,cella,
×
11
                         f"Umd{HumiditySimulator.__count}",initial_humidity,SensorTypes.HUMIDITY.value)
12

UNCOV
13
    def _generate_measure(self):
×
UNCOV
14
        variation = random.uniform(-5, 5)
×
UNCOV
15
        self._misurazione += variation
×
UNCOV
16
        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