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

transentis / bptk_py / 8766949270

20 Apr 2024 06:23PM UTC coverage: 98.227%. First build
8766949270

Pull #21

github

web-flow
Merge e87c66500 into 6101e8174
Pull Request #21: Integration with coveralls

2271 of 2312 relevant lines covered (98.23%)

0.98 hits per line

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

100.0
/tests/abm_model/src/agent1_test.py
1
from BPTK_Py import Agent
1✔
2

3
class agent_1(Agent):
1✔
4
    def __init__(self, agent_id, model, properties):
1✔
5
        super().__init__(agent_id=agent_id, model=model, properties=properties)
1✔
6
        self.agent_type = "agent_1"
1✔
7
        self.state = "open"
1✔
8
        
9
        self._initialize_properties()
1✔
10
        
11
        
12
    def _initialize_properties(self):
1✔
13
        self.set_property("x", {"type" : "Double", "value" : 0})
1✔
14
        
15
    def act(self, time, round_no, step_no):
1✔
16
        self.agent_2 =  self.model.next_agent("agent_2", "available")
1✔
17
        self.x += self.agent_2.y
1✔
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

© 2025 Coveralls, Inc