Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/bugy/script-server
/ next_id
Method
next_id
src/execution/id_generator.py:21–26 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
19
return
max_id + 1
20
21
def
next_id(self):
22
with
self.lock:
23
id = self._next_id
24
self._next_id += 1
25
26
return
str(id)
Callers
6
test_next_id
Method · 0.95
test_2_next_ids
Method · 0.95
test_3_next_ids
Method · 0.95
test_unique_id_after_init
Method · 0.95
test_unique_id_after_init_with_random_ids
Method · 0.95
start_script
Method · 0.45
Calls
no outgoing calls
Tested by
5
test_next_id
Method · 0.76
test_2_next_ids
Method · 0.76
test_3_next_ids
Method · 0.76
test_unique_id_after_init
Method · 0.76
test_unique_id_after_init_with_random_ids
Method · 0.76